tRPCttRPC
Powered by
WiznetW
tRPC•2y ago•
1 reply
Wiznet

Passing input as a prop

Hey all, I currently use zod to define my inputs for queries. Is there a good way to type the zod objects when passing them as props? Specifically I'm writing validation functions to verify the patch against business logic. I'm currently typing per my image but that is messy + not scalable.
image.png
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Pass query as prop with ProcedureUseQuery
CatlikeCCatlike / ❓-help
2y ago
TRPC File as Input
santiago_28407Ssantiago_28407 / ❓-help
3y ago
Generic Zod as Input Type
RealityShiftRRealityShift / ❓-help
3y ago