Kfg Documentation
    Preparing search index...

    Type Alias StaticSchema<T>

    StaticSchema: T extends { items: infer I; type: "array" }
        ? StaticSchema<I>[]
        : T extends TSchema
            ? Static<T>
            : T extends SchemaDefinition
                ? { -readonly [K in keyof T]: StaticSchema<T[K]> }
                : never

    A mapped type that converts a SchemaDefinition into a static TypeScript type.

    Type Parameters

    • T