Skip to main content
Module

x/zod/index.ts>z.ZodObject#extend

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method z.ZodObject.prototype.extend
import { z } from "https://deno.land/x/zod@v3.23.4/index.ts";
const { ZodObject } = z;

Type Parameters

Augmentation extends ZodRawShape

Returns

ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>