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

x/zod/types.ts>ZodObject#extend

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

Type Parameters

Augmentation extends ZodRawShape

Returns

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