Describe the bug
Attempting to use useInfiniteQuery with ts throws a type error related to query function
To Reproduce
See this codesandbox
Expected behavior
To not fail type check
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Pop!_OS 20.04 LTS
- Browser: chrome
- Version: 83.0.4103.116
Additional context
Using ts version 3.9.4 and react-query 2.4.13