Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/deps.ts>z.ZodUnion

Universal process manager built in Deno
Go to Latest
class z.ZodUnion
extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]>
import { z } from "https://deno.land/x/pup@1.0.0-rc.9/deps.ts";
const { ZodUnion } = z;

Type Parameters

T extends ZodUnionOptions

Properties

readonly
options

Methods

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

Static Properties

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