OptionaldescriptionReturns a new instance that has been registered in z.globalRegistry with the specified description
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<HasLength>>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<HasLength>>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueTooSmall<HasLength>>Optionalmessage?: stringOptionalparams: Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>>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<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: ParseContext<$ZodIssue>
Deprecated
Use
.definstead.