x/zod/mod.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodUnion
extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]>
import { ZodUnion } from "https://deno.land/x/zod@v3.17.3/mod.ts?s=ZodUnion";

Type Parameters

T extends ZodUnionOptions[src]

Properties

readonly
options
[src]

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>[src]

Static Properties

create: <T extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: T, params?: RawCreateParams) => ZodUnion<T>[src]