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

x/zod/index.ts>z.mergeTypes

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
type alias z.mergeTypes
import { type z } from "https://deno.land/x/zod@v3.20.4/index.ts";
const { mergeTypes } = z;
definition: [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never