Skip to content

Glossary: TypeScript Beyond the Basics

Deriving schemas

Also written: .omit(), .pick(), .partial(), .extend()

Building new Zod object schemas from existing ones with methods like `.omit()`, `.pick()`, `.partial()` and `.extend()`, much like TypeScript's utility types. Schemas that have a `.refine()` check can't use `.omit()` or `.pick()`, so you derive from the unrefined base schema instead.

Where the book teaches it

Related terms

SchemaPick and Omit.refine