We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5331a1e commit eb87735Copy full SHA for eb87735
src/connect/mapDispatchToProps.ts
@@ -1,13 +1,10 @@
1
import { ActionCreatorsMapObject, Dispatch } from 'redux'
2
+import { FixTypeLater } from '../types'
3
import bindActionCreators from '../utils/bindActionCreators'
-import {
4
- MapToProps,
5
- wrapMapToPropsConstant,
6
- wrapMapToPropsFunc,
7
-} from './wrapMapToProps'
+import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps'
8
9
export function whenMapDispatchToPropsIsFunction(
10
- mapDispatchToProps: ActionCreatorsMapObject | MapToProps
+ mapDispatchToProps: ActionCreatorsMapObject | FixTypeLater
11
) {
12
return typeof mapDispatchToProps === 'function'
13
? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps')
0 commit comments