Open
Description
openapi-react-query version
0.5.0
Description
Pretty much what it says in the header. When you use useInfiniteQuery
with a @tanstack/react-query
version greater than 5.80.0, it breaks the inference on getNextPageParam
(basically the entire InfiniteQueryOptions type becomes any
).
Reproduction
Repro here: https://github.com/daviduzumeri/openapi-fetch-infinitequery-repo
If you mouse over lastPage
and allPages
in the getNextPageParam
implementation they'll be any
instead of the correct generated type. If you backpedal to 0.79.2, it works fine.
Expected result
It should infer correctly.
Extra
- I’m willing to open a PR (see CONTRIBUTING.md)