Membrane React - v0.6.0
    Preparing search index...

    Interface $ZodUnionInternals<T>

    interface $ZodUnionInternals<
        T extends readonly SomeType[] = readonly $ZodType[],
    > {
        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>;
        propValues?: PropValues;
        constr: new (def: any) => $ZodType;
        bag: Record<string, unknown>;
        toJSONSchema?: () => unknown;
        parent?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>;
        def: $ZodUnionDef<T>;
        isst: $ZodIssueInvalidUnion;
        pattern: T[number]["_zod"]["pattern"];
        values: T[number]["_zod"]["values"];
        output: $InferUnionOutput<T[number]>;
        input: $InferUnionInput<T[number]>;
        optin: IsOptionalIn<T[number]> extends false
            ? undefined | "optional"
            : "optional";
        optout: IsOptionalOut<T[number]> extends false
            ? undefined | "optional"
            : "optional";
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Methods

    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.

    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.

    Schema definition.

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

    pattern: T[number]["_zod"]["pattern"]

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

    values: T[number]["_zod"]["values"]

    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?

    output: $InferUnionOutput<T[number]>
    input: $InferUnionInput<T[number]>
    optin: IsOptionalIn<T[number]> extends false
        ? undefined | "optional"
        : "optional"
    optout: IsOptionalOut<T[number]> extends false
        ? undefined | "optional"
        : "optional"