backbone
backbone3y 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
Nick3y ago
Pop your Zod types in a library and import into both

Did you find this page helpful?