| 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.
Sicurezza dei tipi end-to-end con pattern Zod, tRPC, Prisma e TypeScript 5.7+. Da utilizzare durante la creazione di schemi Zod, l'impostazione di tRPC, la convalida dell'input, l'implementazione di istruzioni switch esaustive, tipi con marchio o il controllo del tipo con ty. Fonte: yonatangross/orchestkit.