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

    Type Alias AsJson<Input, CustomTypes>

    AsJson: Input extends | string
    | bigint
    | number
    | boolean
    | null
    | undefined
    | CustomTypes
        ? Input
        : Input extends Function
            ? never
            : Input extends object ? { [K in keyof Input]: AsJson<Input[K]> } : never

    JSON serializable types.

    Type Parameters

    • Input

      Input type.

    • CustomTypes = never

      Custom types to be included in the JSON payload. (Buffer, etc.)

    v0.1.0