DavidD
tRPC2y 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
or
.mutation
. But im not sure if there is a helper type to get this type from our instance?
Was this page helpful?