OptionaldescriptionOptionalvalue: TOptionaldef: $ZodNumberDefOptionalparams: { parent: boolean }Optionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Returns a new instance that has been registered in z.globalRegistry with the specified description
Optionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>Optionalmessage?: stringIdentical to .min()
Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>Optionalmessage?: stringConsider z.int() instead. This API is considered legacy; it will never be removed but a better alternative exists.
Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>Optionalmessage?: stringIdentical to .max()
Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>Optionalmessage?: stringReturns the metadata associated with this instance in z.globalRegistry
Returns a new instance that has been registered in z.globalRegistry with the specified metadata
Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueNotMultipleOf<number | bigint>>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>Optionalmessage?: stringOptionalparams: Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooBig<Numeric>>Optionalmessage?: stringOptionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooSmall<Numeric>>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<NonNullable<$ZodIssue>>Optionalmessage?: stringOptionalparams?: Record<string, any>Optionalpath?: PropertyKey[]Optionalwhen?: (payload: ParsePayload) => booleanIf provided, this check will only be executed if the function returns true. Defaults to payload => z.util.isAborted(payload).
Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: Optionalmessage?: stringOptionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueNotMultipleOf<number | bigint>>Optionalmessage?: string
Deprecated
Use
.definstead.