Readonly
_defReadonly
_inputReadonly
_outputReadonly
_typeOptional
params: Partial<ParseParams>Optional
ctx: ParseContextOptional
brand: BOptional
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>Static
createThe constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor. However, it only allows a union of objects, all of which need to share a discriminator property. This property must have a different value for each object in the union.
the name of the discriminator property
Optional
params: RawCreateParamsGenerated using TypeDoc
Alias of safeParseAsync