T
tRPC

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

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

Bbackbone3/18/2023
When submitting forms, I need the same validation. How to reduce the repeated code?
Nnlucas3/18/2023
Pop your Zod types in a library and import into both

Looking for more? Join the community!

T
tRPC

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

Join Server