backbone
backbone2y ago

how to use the same Zod validation both client and server's procedure input

When submitting forms, I need the same validation. How to reduce the repeated code?
1 Reply
Nick
Nick2y ago
Pop your Zod types in a library and import into both