Membrane SDK - v0.8.0
    Preparing search index...

    Interface $ZodEnumInternals<T>Internal

    interface $ZodEnumInternals<out T extends EnumLike = EnumLike> {
        version: { major: 4; minor: 1; patch: number };
        deferred: undefined | AnyFunc[];
        run(
            payload: ParsePayload<any>,
            ctx: ParseContextInternal,
        ): MaybeAsync<ParsePayload<unknown>>;
        parse(
            payload: ParsePayload<any>,
            ctx: ParseContextInternal,
        ): MaybeAsync<ParsePayload<unknown>>;
        traits: Set<string>;
        optin?: "optional";
        optout?: "optional";
        propValues?: PropValues;
        constr: new (def: any) => $ZodType;
        bag: Record<string, unknown>;
        toJSONSchema?: () => unknown;
        parent?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>;
        output: T[keyof T];
        input: T[keyof T];
        def: $ZodEnumDef<T>;
        values: PrimitiveSet;
        pattern: RegExp;
        isst: $ZodIssueInvalidValue;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

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

    The @zod/core version of this schema

    deferred: undefined | AnyFunc[]

    List of deferred initializers.

    traits: Set<string>

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

    optin?: "optional"
    optout?: "optional"
    propValues?: PropValues

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

    constr: new (def: any) => $ZodType

    The constructor function of this schema.

    bag: Record<string, unknown>

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

    toJSONSchema?: () => unknown

    An optional method used to override toJSONSchema logic.

    parent?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

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

    output: T[keyof T]

    The inferred output type

    input: T[keyof T]

    The inferred input type

    Schema definition.

    values: PrimitiveSet

    Internal API, use with caution (not deprecated)

    pattern: RegExp

    Internal API, use with caution (not deprecated)

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

    Methods