x/zod/mod.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
type alias ZodDiscriminatedUnionOption
import { type ZodDiscriminatedUnionOption } from "https://deno.land/x/zod@v3.17.3/mod.ts?s=ZodDiscriminatedUnionOption";

Type Parameters

Discriminator extends string[src]
DiscriminatorValue extends Primitive[src]
defintion: ZodObject<[key in Discriminator]: ZodLiteral<DiscriminatorValue> & ZodRawShape, any, any>[src]