Typescript helper for router output
is there a helper to do this better? Get the output for a certain route? Or is this the way to do it?
Solution:Jump to solution
is there a helper to do this better? Get the output for a certain route? Or is this the way to do it?
```ts
import type { AppRouter } from "$lib/api/root";
...
2 Replies
Never mind, I should’ve looked better
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.