MCPcopy
hub / github.com/colinhacks/zod / or

Method or

packages/zod/src/v4/classic/schemas.ts:172–172  ·  view source on GitHub ↗
(option: T)

Source from the content-addressed store, hash-verified

170 prefault(def: core.input<this>): ZodPrefault<this>;
171 array(): ZodArray<this>;
172 or<T extends core.SomeType>(option: T): ZodUnion<[this, T]>;
173 and<T extends core.SomeType>(incoming: T): ZodIntersection<this, T>;
174 transform<NewOut>(
175 transform: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => NewOut | Promise<NewOut>

Callers 9

play.tsFile · 0.80
generics.test.tsFile · 0.80
index.test.tsFile · 0.80
union.test.tsFile · 0.80
generics.test.tsFile · 0.80
tuple.test.tsFile · 0.80
extend.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected