Zod · Method
.or
.or() combines two Zod schemas. The result accepts data that matches either schema.
Last updated
Syntax
schema.or(otherSchema)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
parsesafeParseparseAsyncsafeParseAsyncZodTypetransformpipe