Skip to content

Commit a59259e

Browse files
committed
Fix internal TS error with TS 4.7
1 parent d595bef commit a59259e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connect/wrapMapToProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { FixTypeLater } from '../types'
44
import verifyPlainObject from '../utils/verifyPlainObject'
55

66
type AnyState = { [key: string]: any }
7-
type StateOrDispatch<S = AnyState> = S | Dispatch
7+
type StateOrDispatch<S extends AnyState = AnyState> = S | Dispatch
88

99
type AnyProps = { [key: string]: any }
1010

0 commit comments

Comments
 (0)