KC's Workspace
    Preparing search index...

    Interface $constructor<T, D>

    interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
        new $constructor(def: D): T;
        init(inst: T, def: D): asserts inst is T;
    }

    Type Parameters

    Index
    • Parameters

      • def: D

      Returns T

    • Parameters

      • inst: T
      • def: D

      Returns asserts inst is T