We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d595bef commit 857311dCopy full SHA for 857311d
src/components/connect.tsx
@@ -537,7 +537,9 @@ function connect<
537
displayName,
538
wrappedComponentName,
539
WrappedComponent,
540
+ // @ts-ignore
541
initMapStateToProps,
542
543
initMapDispatchToProps,
544
// @ts-ignore
545
initMergeProps,
src/connect/wrapMapToProps.ts
@@ -4,7 +4,7 @@ import { FixTypeLater } from '../types'
4
import verifyPlainObject from '../utils/verifyPlainObject'
5
6
type AnyState = { [key: string]: any }
7
-type StateOrDispatch<S = AnyState> = S | Dispatch
+type StateOrDispatch<S extends AnyState = AnyState> = S | Dispatch
8
9
type AnyProps = { [key: string]: any }
10
0 commit comments