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

x/zod/index.ts>z.ZodObjectDef

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
interface z.ZodObjectDef
implements ZodTypeDef
import { type z } from "https://deno.land/x/zod@v3.22.1/index.ts";
const { ZodObjectDef } = z;

Type Parameters

optional
T extends ZodRawShape = ZodRawShape
optional
UnknownKeys extends UnknownKeysParam = UnknownKeysParam
optional
Catchall extends ZodTypeAny = ZodTypeAny

Properties

typeName: ZodFirstPartyTypeKind.ZodObject
shape: () => T
catchall: Catchall
unknownKeys: UnknownKeys