react-redux-typescript-guide: Hoc broken with typescript@3.2.1
Got an issue with hoc and typescript 3.2.1, any idea of what’s missing
Based on latest master:
Tsc will fail with
hoc/with-state.tsx:41:18 - error TS2322: Type '{ count: number; onIncrement: () => void; }' is not assignable to type 'IntrinsicAttributes & WrappedProps & { children?: ReactNode; }'.
Property 'count' does not exist on type 'IntrinsicAttributes & WrappedProps & { children?: ReactNode; }'.
Any ideas ?
IssueHunt Summary
piotrwitek has been rewarded.
Backers (Total: $50.00)
issuehunt ($50.00)
Submitted pull Requests
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
IssueHunt has been backed by the following sponsors. Become a sponsor
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 15 (7 by maintainers)
Commits related to this issue
- Fixed issue with HOC Fixed #111 — committed to piotrwitek/react-redux-typescript-guide by piotrwitek 5 years ago
- Updated Guide and refactored playground project to work with the most recent TypeScript 3.7 and React & Redux type definitions. (#193) * Updated deps * Updated deps and refactored code to fix brea... — committed to piotrwitek/react-redux-typescript-guide by piotrwitek 5 years ago
I can’t adjust types to use Redux
connect
. Is it related?Error:
Thanks.
Explanation and temporary solution
The issue is fixed using:
Full example: