RealityShift
Generic Zod as Input Type
I'm not positive if this is a TRPC question, typescript in general, or failure to understand Zod in this usecase. Our API has a several endpoints that all work the same way just pass in different payloads. I'm trying to create a single function to assign to all my TRPC routes:
I'm not sure what should be in the
input
section to make this work?6 replies