I'm trying to get type for queries/mutations returned from trpc use hooks, but they are different
Hello, can anyone tell me please how I can get rid of ts errors when trying to accomplish what I mentioned in title?
I tried asserting as types from context from screen 1, but it throws errors too
I tried asserting as types from context from screen 1, but it throws errors too



Solution
This is how I did it:
And here is the same for the new
You should be able to build types for
And here is the same for the new
tanstack-react-query integration:You should be able to build types for
useMutation the same way. I have no examples for that