Skip to content

Glossary: TypeScript Beyond the Basics

z.prettifyError

Also written: prettifyError

A Zod function that formats a `ZodError`'s issues as readable text for people, naming each bad field.

Where the book teaches it

Related terms

Issue (Zod)parse and safeParse