How can i use inferprocedureoutput?
I'd like to write this code type-safely:I'm pretty sure i need to use
inferProcedureOutput but i couldn't figure out what to pass. I can never access query.isLoading for example.2 Replies
Seems like i actually need something likebut i don't understand why i need to pass
TRPCClientErrorLikeInferring 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.