Zod · Type Alias
ZodType
Zod is a TypeScript-first schema library. Define schemas, validate unknown data, and receive type-safe parsed values.
Last updated
Syntax
import * as z from "zod";
const schema = z.string();
schema.parse(data);
schema.safeParse(data);In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Zod MiniZod CoreZodTypeparsesafeParseparseAsyncsafeParseAsynccheck