How to get access to the types generated by the server in the frontend (React)?
In this example, how do you replace
data: any
to the correct type?
2 Replies
I found this. is it the good approach?
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.