We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Typings are incompatible with latest react-redux@8
react-redux@8
node_modules/@rematch/core/dist/types.d.ts:220:97 - error TS2304: Cannot find name 'MapStateToPropsParam'. 220 <RM extends Models<RM>, State, TStateProps, TDispatchProps, TOwnProps>(mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps, State>, mapDispatchToProps: MapRematchDispatchToPropsNonObject<TDispatchProps, TOwnProps, RM>): InferableComponentEnhancerWithProps<TStateProps & TDispatchProps, TOwnProps>; ~~~~~~~~~~~~~~~~~~~~ node_modules/@rematch/core/dist/types.d.ts:220:238 - error TS2304: Cannot find name 'InferableComponentEnhancerWithProps'. 220 <RM extends Models<RM>, State, TStateProps, TDispatchProps, TOwnProps>(mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps, State>, mapDispatchToProps: MapRematchDispatchToPropsNonObject<TDispatchProps, TOwnProps, RM>): InferableComponentEnhancerWithProps<TStateProps & TDispatchProps, TOwnProps>;
To Reproduce
If you try to compile any project with skipLibCheck: false using latest dependencies (example below), it will fail type check.
skipLibCheck: false
{ "name": "rematch-test", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "@rematch/core": "^2.2.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-redux": "^8.0.2", "redux": "^4.2.0", "typescript": "^4.7.4" } }
Expected behavior
Compilation works without any errors
Additional context
Perhaps this type augmentation is no longer required
rematch/packages/core/src/types.ts
Lines 803 to 813 in f5a2773
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Typings are incompatible with latest
react-redux@8
To Reproduce
If you try to compile any project with
skipLibCheck: false
using latest dependencies (example below), it will fail type check.Expected behavior
Compilation works without any errors
Additional context
Perhaps this type augmentation is no longer required
rematch/packages/core/src/types.ts
Lines 803 to 813 in f5a2773
The text was updated successfully, but these errors were encountered: