React-Query TypeScript Errors #3073
-
Hi! Versions
Usage: index.js -- wrapper
api:
component:
Everything works great BUT
When I run As a workaround added Is there a way to fix this apart from Also if there is anything wrong in terms of setup/coding standpoint or any version update needed. Please let me know. Thank you 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
hm, really not sure what's going on here. We've explicitly added different types for ts < 4.1 when we made the change to useQueries so that smaller TS versions are not affected, as we use TS 4.1 features to achieve this: could you provide a codesandbox reproduction? also, just to let you know, we might drop this in the next major and bump the required TS version to 4.1 (which is over a year old as of now) |
Beta Was this translation helpful? Give feedback.
hm, really not sure what's going on here. We've explicitly added different types for ts < 4.1 when we made the change to useQueries so that smaller TS versions are not affected, as we use TS 4.1 features to achieve this:
https://github.com/tannerlinsley/react-query/blob/05a5382e4d73db46b4f562c30afb353fd0b165f8/package.json#L86-L92
could you provide a codesandbox reproduction?
also, just to let you know, we might drop this in the next major and bump the required TS version to 4.1 (which is over a year old as of now)