Using Zod objects generated from drizzle zod with ts-rest . Parameters interpreted as optional
Hey I am trying to use drizzle zod to generate zod objects to be used in my ts rest contract. however when I try to use this contract in my handlers the fields in the body being passed are interpreted as being optional and not mandatory
contract
body object
2 Replies
For those of you coming here with the same issue
in your tsconfig set
this worked for me