Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/zod/index.ts>ZodIntersection

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodIntersection
extends ZodType<T["_output"] & U["_output"], ZodIntersectionDef<T, U>, T["_input"] & U["_input"]>
import { ZodIntersection } from "https://deno.land/x/zod@v3.9.8/index.ts";

Methods

_parse(
data: any,
parsedType: ZodParsedType,
): ParseReturnType<T["_output"] & U["_output"]>

Static Properties

create: <T extends ZodTypeAny, U extends ZodTypeAny>(
left: T,
right: U,
params?: RawCreateParams,
) => ZodIntersection<T, U>