Optional
descriptionOptional
value: TOptional
def: T["def"]Optional
params: { parent: boolean }Returns a new instance that has been registered in z.globalRegistry
with the specified description
Optional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optional
message?: stringOptional
params: {Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optional
message?: stringOptional
position?: numberOptional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: Optional
message?: stringOptional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optional
message?: stringOptional
pattern?: RegExpOptional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<$ZodIssueTooBig<HasLength>>Optional
message?: 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
Optional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<$ZodIssueTooSmall<HasLength>>Optional
message?: stringOptional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<$ZodIssueTooSmall<HasLength>>Optional
message?: stringOptional
params: Optional
error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>>Optional
message?: stringOptional
form: string & {} | "NFC" | "NFD" | "NFKC" | "NFKD"Optional
params: ParseContext<$ZodIssue>Optional
params: ParseContext<$ZodIssue>Optional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<NonNullable<$ZodIssue>>Optional
message?: stringOptional
params?: Record<string, any>Optional
path?: PropertyKey[]Optional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optional
message?: stringOptional
params: ParseContext<$ZodIssue>Optional
params: ParseContext<$ZodIssue>Optional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optional
message?: stringOptional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optional
message?: stringOptional
pattern?: RegExp
Deprecated
Use
.def
instead.