Description
Do you want to request a feature or report a bug?
No
What is the current behavior?
Redux publishes a manually created index.d.ts file. This also affects reselect, redux-devtools, and redux-thunk.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.
Explanation of why this isn't recommended: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
To summarize, type declarations should either be generated from TypeScript source code or shared in DefinitelyTyped, which allows contributors to edit the types without having to edit the original package. This can also help alleviate maintenance and versioning issues regarding Redux users that write their code in TypeScript. Many issues about TypeScript compatibility could be moved to the dedicated DefinitelyTyped community if the types were separated, and the types could have breaking changes released without interfering with non-TypeScript users.
What is the expected behavior?
Redux either removes its type declaration (should be a breaking change) and moves them to DefinitelyTyped (recommended) or is ported to TypeScript (could be difficult and requires additional maintenance, but makes the types more accurate).
Which versions of Redux, and which browser and OS are affected by this issue? Did this work in previous versions of Redux?
3.4.0+ (all versions that publish index.d.ts)