Get types of return value from trpc api call

For some reason in this new project when I get say the type of data I'm passing into useQuery is undefined it's actually expecting what would be the response of the function? Does anyone have any idea why, this works in other projects and I've used this consistently.
Solution:
RouterOutput["discord"]["getUserTeams"]
Jump to solution
5 Replies
Smadger
SmadgerOP2y ago
If I used a more complex API call it just expects back what would be returned from the API call. Here is an example on a more complex api endpoint.
Neto
Neto2y ago
You don't need to use ReturnType directly There should be a export on the API folder relates to types
Smadger
SmadgerOP2y ago
Is there 🤦‍♂️
Solution
chocolatebananarhino
RouterOutput["discord"]["getUserTeams"]
Smadger
SmadgerOP2y ago
Oh I'm an idiot haha Thanks so much
Want results from more Discord servers?
Add your server