Readonly
_defReadonly
_inputReadonly
_outputReadonly
_typeAlias of safeParseAsync
Static
createStatic
lazycreateStatic
strictOptional
ctx: ParseContextOptional
brand: BPrior to zod@1.0.12 there was a bug in the inferred type of merged objects. Please upgrade if you are experiencing issues.
Optional
params: Partial<ParseParams>Optional
params: Partial<ParseParams>Optional
message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: Output) => Partial<Omit<ZodCustomIssue, "code">>)Optional
message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: Output) => Partial<Omit<ZodCustomIssue, "code">>)Optional
params: Partial<ParseParams>Optional
params: Partial<ParseParams>Optional
message: ErrMessage
Deprecated
Use
.extend
instead