OptionaldescriptionOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalversion?: "v4"Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalversion?: "v6"Optionaldef: $ZodStringDefOptionalparams: { parent: boolean }Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionallocal?: booleanOptionalmessage?: stringOptionaloffset?: booleanOptionalprecision?: number | nullOptionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Returns 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?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: {Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalposition?: numberOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalalg?: JWTAlgorithmOptionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: 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<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: 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<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: 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?: stringOptionalform: string & {} | "NFC" | "NFD" | "NFKC" | "NFKD"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<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?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>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<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalprecision?: number | nullOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExpOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalhostname?: RegExpOptionalmessage?: stringOptionalnormalize?: booleanOptionalpattern?: RegExpOptionalprotocol?: RegExpOptionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalversion?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8"Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalversion?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8"Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalversion?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8"Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalversion?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8"Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>Optionalmessage?: stringOptionalpattern?: RegExp
Deprecated
Use
.definstead.