@luolapeikko/ts-common
    Preparing search index...

    Interface IToJSON<JsonOutput>

    Interface for classes that can be converted to JSON.

    class MyClass implements IToJSON<{name: string}> {}
    

    v0.1.0

    interface IToJSON<JsonOutput> {
        toJSON(): AsJson<JsonOutput>;
    }

    Type Parameters

    • JsonOutput

      The type of the JSON output from class method or function

    Index

    Methods

    Methods