| Zod | Runtime validation | z.object({}).safeParse(data) | | tRPC | Type-safe APIs | t.procedure.input(schema).query() | | Prisma | Type-safe ORM | Auto-generated types from schema | | TypeScript 5.7+ | Compile-time safety | satisfies, const params, decorators |
See: references/zod-patterns.md for transforms, refinements, discriminated unions, and recursive types.
See: references/trpc-setup.md for middleware, authentication, React integration, and error handling.
Сквозная безопасность типов с помощью шаблонов Zod, tRPC, Prisma и TypeScript 5.7+. Используйте при создании схем Zod, настройке tRPC, проверке ввода, реализации исчерпывающих операторов переключения, фирменных типах или проверке типов с помощью ty. Источник: yonatangross/orchestkit.