3 ms·
You can easily express constraints like these with Zod though (created by the same person who created tRPC v1)
by pcthrowaway 3y ago
You can easily express constraints like these with Zod though (created by the same person who created tRPC v1)
- Cannabat 3y agoSure, if you have TS in your backend. There are OpenAPI to zod generators that can help get you started, even if they don’t give you perfect zod schemas out the gate.