Get Name of All Query Routes or Mutation Routes
Typescript is pretty unhappy with my methods of doing this manually, so wondering if there are any official ways
although they i'm pretty sure they should work objectively i.e.
If I use this
But if I do
It works
https://trpc.io/docs/client/vanilla/infer-types
Inferring Types | tRPC
It is often useful to access the types of your API within your clients. For this purpose, you are able to infer the types contained in your AppRouter.
0 Replies