LunaCrafts
LunaCrafts3y ago

Is inferRouterInputs & inferRouterOutputs exported from trpc-server?

"@trpc/server": "10.0.0-proxy-beta.26",
3 Replies
LunaCrafts
LunaCraftsOP3y ago
Inferring Types | tRPC
It is often useful to wrap functionality of your @trpc/client or @trpc/react-query api within other functions. For this purpose, it's necessary to be able to infer input types and output types generated by your @trpc/server router.
taylor.presto
taylor.presto3y ago
+1 to this!
sachin
sachin3y ago
you have to be on 10.0.0-rc.1 (release candidate was published to the latest tag instead of the next tag by accident)