Readonly
_defReadonly
_inputReadonly
_outputReadonly
_typeIn most cases, this is no longer needed - unknown properties are now silently stripped.
If you want to pass through unknown properties, use .passthrough()
instead.
Alias of safeParseAsync
Optional
params: Partial<ParseParams>Static
createOptional
params: RawCreateParamsStatic
lazycreateOptional
params: RawCreateParamsStatic
strictOptional
params: RawCreateParamsOptional
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) => Partial<Omit<ZodCustomIssue, "code">>)Optional
message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg) => Partial<Omit<ZodCustomIssue, "code">>)Optional
params: Partial<ParseParams>Optional
params: Partial<ParseParams>Optional
message: ErrMessageGenerated using TypeDoc
Deprecated
Use
.extend
instead