Optional
descriptionOptional
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
value: TOptional
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
version?: "v4"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
version?: "v6"Optional
def: $ZodStringDefOptional
params: { parent: boolean }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
pattern?: RegExpOptional
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<$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
local?: booleanOptional
message?: stringOptional
offset?: booleanOptional
precision?: null | numberReturns 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
pattern?: RegExpOptional
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<$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<$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<$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
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?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optional
message?: stringOptional
version?: "v4"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
version?: "v6"Optional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
alg?: JWTAlgorithmOptional
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?: RegExpOptional
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<$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<$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
precision?: null | numberOptional
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<$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<$ZodIssueInvalidStringFormat>Optional
hostname?: RegExpOptional
message?: stringOptional
pattern?: RegExpOptional
protocol?: RegExpOptional
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
version?: "v8" | "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7"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
version?: "v8" | "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7"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
version?: "v8" | "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7"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
version?: "v8" | "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7"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
pattern?: RegExp
Deprecated
Use
.def
instead.