Closed
Description
What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
- React: 16.14.0
- ReactDOM/React Native: 16.14.0
- Redux: 4.2.0
- React Redux: 8.0.0
What is the current behavior?
When compiling a TypeScript project that has the noImplicitAny
config set to true
, then react-redux .ts
files are typechecked and result in a compilation error
node_modules/react-redux/src/utils/Subscription.ts:95:8 - error TS7011: Function expression, which lacks return-type annotation, implicitly has an 'any[]' return type.
95 get: () => [],
~~~~~~~~
Found 1 error in node_modules/react-redux/src/utils/Subscription.ts:95
I believe the ts
files should be stripped from the final bundle that is uploaded to npm in order to avoid such ts config mismatch.
What is the expected behavior?
There shouldn't be any compilation error.
Which browser and OS are affected by this issue?
N/A
Did this work in previous versions of React Redux?
- Yes
Metadata
Metadata
Assignees
Labels
No labels