t
tRPC
D
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
?
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Get Name of All Query Routes or Mutation Routes
T
tendies123 / ❓-help
3y ago
Get specific type of mutation as function arg
A
Answer Overflow / ❓-help
2y ago