Skip to content

Glossary: TypeScript Beyond the Basics

.refine

Also written: refine, refinement, refinements

A Zod method that adds a custom check across several fields, such as "a shipped order must name its carrier". A refined schema can't use `.omit()` or `.pick()`.

Where the book teaches it

Related terms

Schema