augment-vir - v32.2.2
    Preparing search index...

    Type Alias Jsonify<T>

    Jsonify: IsAny<T> extends true
        ? any
        : T extends PositiveInfinity
        | NegativeInfinity
            ? null
            : T extends JsonPrimitive
                ? T
                : T extends { toJSON(): J }
                    ? () => J extends () => JsonValue ? J : Jsonify<J>
                    : T extends Number
                        ? number
                        : T extends String
                            ? string
                            : T extends Boolean
                                ? boolean
                                : T extends Map<any, any>
                                | Set<any>
                                    ? EmptyObject
                                    : T extends TypedArray
                                        ? Record<string, number>
                                        : T extends NotJsonable
                                            ? never
                                            : (...) extends (...) ? (...) : (...)

    Transform a type to one that is assignable to the JsonValue type.

    Copied from the Jsonify type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters

    • T