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

    Interface $ZodNumberInternals<Input>Internal

    interface $ZodNumberInternals<Input = unknown> {
        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";
        values?: PrimitiveSet;
        propValues?: PropValues;
        constr: new (def: any) => $ZodType;
        toJSONSchema?: () => unknown;
        parent?: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>;
        output: number;
        input: Input;
        def: $ZodNumberDef;
        pattern: RegExp;
        isst: $ZodIssueInvalidType;
        bag: LoosePartial<
            {
                minimum: number;
                maximum: number;
                exclusiveMinimum: number;
                exclusiveMaximum: number;
                format: string;
                pattern: RegExp;
            },
        >;
    }

    Type Parameters

    • Input = unknown

    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.

    optin?: "optional"
    optout?: "optional"
    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?

    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.

    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: number

    The inferred output type

    input: Input

    The inferred input type

    Schema definition.

    pattern: RegExp

    Internal API, use with caution (not deprecated)

    Internal API, use with caution (not deprecated)

    bag: LoosePartial<
        {
            minimum: number;
            maximum: number;
            exclusiveMinimum: number;
            exclusiveMaximum: number;
            format: string;
            pattern: RegExp;
        },
    >

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