File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ type StateOrDispatch<S = AnyState> = S | Dispatch
88
99type AnyProps = { [ key : string ] : any }
1010
11- export type MapToProps < P = AnyProps > = {
11+ export type MapToProps < P extends AnyProps = AnyProps > = {
1212 // eslint-disable-next-line no-unused-vars
1313 ( stateOrDispatch : StateOrDispatch , ownProps ?: P ) : FixTypeLater
1414 dependsOnOwnProps ?: boolean
@@ -65,7 +65,7 @@ export function getDependsOnOwnProps(mapToProps: MapToProps) {
6565// * On first call, verifies the first result is a plain object, in order to warn
6666// the developer that their mapToProps function is not returning a valid result.
6767//
68- export function wrapMapToPropsFunc < P = AnyProps > (
68+ export function wrapMapToPropsFunc < P extends AnyProps = AnyProps > (
6969 mapToProps : MapToProps ,
7070 methodName : string
7171) {
You can’t perform that action at this time.
0 commit comments