Module

x/zod/types.ts>Schema#or

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method Schema.prototype.or
import { Schema } from "https://dotland.deno.dev/x/zod@v3.21.2/types.ts";

Type Parameters

T extends ZodTypeAny

Parameters

option: T

Returns

ZodUnion<[this, T]>