How to type select fn
I have next code:
I want to properly type a select function, to make select generic, so that TS properly recognized the response of useQuery with and without select function. I keep getting an error.

3 Replies
adverse-sapphireOP•6mo ago
@TkDodo 🔮 Hey Dominik, sorry for bothering you, but it's crucial. Any ideas?
rival-black•6mo ago
TS Playground - An online editor for exploring TypeScript and JavaS...
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
adverse-sapphireOP•6mo ago
Awesome, thx Dominik 🙂