TypeScript 优先的 schema 校验库,一份 schema 同时给出运行时校验与静态类型推断,是 tRPC、React Hook Form 这类生态的默认搭档。支持对象、数组、联合、递归类型,以及 transform 与 refine 做数据加工;新版本加强了错误信息可读性与解析性能,零运行时依赖。 ⭐ GitHub Stars: 44k+ 🔗 定义 schema: https://zod.dev/api
A TypeScript-first schema validation library where one declaration yields both runtime checks and static types, which is why tRPC, React Hook Form and similar stacks default to it. Objects, arrays, unions, recursive types, plus transform and refine for data shaping. Recent versions improved error readability and parse performance, with zero runtime dependencies. ⭐ GitHub Stars: 44k+ 🔗 Defining schemas: https://zod.dev/api
Zod belongs to the Developer Tools category on hedirbase. Tagged with: typescript,schema-validation,type-inference,open-source,library.
A TypeScript-first schema validation library where one declaration yields both runtime checks and static types, which is why tRPC, React Hook Form and similar stacks default to it. Objects, arrays, un