Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.1k
Open
Description
Description
usingas BaseProps
is incorrect on this line, isn't it? Shouldn't that beas Diff<BaseProps, InjectedProps>
?https://github.com/piotrwitek/react-redux-typescript-guide/blob/master/playground/src/hoc/with-connected-count.tsx#L43
As far as I can tell all properties ofInjectedProps
have been removed on line 37, andrestProps
now contains only those properties which would be inDiff<BaseProps, InjectedProps>
.
Suggested solution(s)
Maybe on line 23 or line 29, add:type RemainingProps = Diff<BaseProps, InjectedProps>
And then use it as the cast type on line 43, and use it again on line 52.
Metadata
Metadata
Assignees
Labels
No labels