@karmaniverous/get-dotenv
    Preparing search index...

    Interface $ZodMapInternals<Key, Value>Internal

    interface $ZodMapInternals<
        Key extends SomeType = z.core.$ZodType,
        Value extends SomeType = z.core.$ZodType,
    > {
        bag: Record<string, unknown>;
        constr: new (def: any) => z.core.$ZodType;
        def: $ZodMapDef<Key, Value>;
        deferred: AnyFunc[] | undefined;
        input: Map;
        isst:
            | $ZodIssueInvalidType<unknown>
            | $ZodIssueInvalidKey<unknown>
            | $ZodIssueInvalidElement<unknown>;
        optin?: "optional";
        optout?: "optional";
        output: Map;
        parent?: z.core.$ZodType<
            unknown,
            unknown,
            $ZodTypeInternals<unknown, unknown>,
        >;
        pattern: RegExp | undefined;
        propValues?: PropValues;
        toJSONSchema?: () => unknown;
        traits: Set<string>;
        values?: PrimitiveSet;
        version: { major: 4; minor: 1; patch: number };
        parse(
            payload: ParsePayload<any>,
            ctx: ParseContextInternal,
        ): MaybeAsync<ParsePayload<unknown>>;
        run(
            payload: ParsePayload<any>,
            ctx: ParseContextInternal,
        ): MaybeAsync<ParsePayload<unknown>>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    bag: Record<string, unknown>

    A catchall object for bag metadata related to this schema. Commonly modified by checks using onattach.

    constr: new (def: any) => z.core.$ZodType

    The constructor function of this schema.

    Schema definition.

    deferred: AnyFunc[] | undefined

    List of deferred initializers.

    input: Map

    The inferred input type

    isst:
        | $ZodIssueInvalidType<unknown>
        | $ZodIssueInvalidKey<unknown>
        | $ZodIssueInvalidElement<unknown>

    The set of issues this schema might throw during type checking.

    optin?: "optional"
    optout?: "optional"
    output: Map

    The inferred output type

    parent?: z.core.$ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

    The parent of this schema. Only set during certain clone operations.

    pattern: RegExp | undefined

    This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral().

    propValues?: PropValues

    A set of literal discriminators used for the fast path in discriminated unions.

    toJSONSchema?: () => unknown

    An optional method used to override toJSONSchema logic.

    traits: Set<string>

    Stores identifiers for the set of traits implemented by this schema.

    values?: PrimitiveSet

    The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().

    Defined on: enum, const, literal, null, undefined Passthrough: optional, nullable, branded, default, catch, pipe Todo: unions?

    version: { major: 4; minor: 1; patch: number }

    The @zod/core version of this schema

    Methods