tRPCttRPC
Powered by
DavidD
tRPC•2y ago•
9 replies
David

Best way to get the type of the first argument for .query or .mutation

I am creating an abstraction in which I expect the consumer to pass the whole object that is passed as the first argument of
.query
.query
or
.mutation
.mutation
. But im not sure if there is a helper type to get this type from our instance?
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

Get Name of All Query Routes or Mutation Routes
tendies123Ttendies123 / ❓-help
3y ago
Get specific type of mutation as function arg
Answer OverflowAAnswer Overflow / ❓-help
2y ago