t
tRPC
L
tRPC
•
4y ago
lunacrafts
Is inferRouterInputs & inferRouterOutputs exported from trpc-server?
"
@trpc
/server
"
:
"10
.0
.0
-proxy
-beta
.26
"
,
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
Was this page helpful?
Yes
No
L
lunacrafts
OP
•
10/28/22, 4:25 AM
https://trpc.io/docs/v10/infer-types
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
.
T
taylor.presto
•
10/29/22, 3:26 AM
+1 to this
!
S
sachin
•
10/30/22, 5:00 AM
you have to be on
10.0.0-rc.1
10.0.0-rc.1
(release candidate was published to the
latest
latest
tag instead of the
next
next
tag by accident
)
10.0.0-rc.1
10.0.0-rc.1