query icon indicating copy to clipboard operation
query copied to clipboard

require minimum of TS 4.7

Open TkDodo opened this issue 3 years ago • 2 comments

v5 will need TS4.7 or greater to support the object syntax properly.

TkDodo avatar Dec 23 '22 07:12 TkDodo

I believe the ts version in the repository of react-query should always use the latest version (or any the maintainers feel okay with!), since it won't affect the developers' land

incepter avatar Dec 23 '22 20:12 incepter

If we use the latest version and use features of the latest version (4.9), like satisfies, the .d.ts files that we ship as type definitions will not work with versions prior to 4.9. we could do differential transpiling and ship different types for lower TS versions but that effort is not worth it imo.

TkDodo avatar Dec 23 '22 20:12 TkDodo