Skip to content

Commit eb87735

Browse files
committed
fix: add FixTypeLater
1 parent 5331a1e commit eb87735

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/connect/mapDispatchToProps.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import { ActionCreatorsMapObject, Dispatch } from 'redux'
2+
import { FixTypeLater } from '../types'
23
import bindActionCreators from '../utils/bindActionCreators'
3-
import {
4-
MapToProps,
5-
wrapMapToPropsConstant,
6-
wrapMapToPropsFunc,
7-
} from './wrapMapToProps'
4+
import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps'
85

96
export function whenMapDispatchToPropsIsFunction(
10-
mapDispatchToProps: ActionCreatorsMapObject | MapToProps
7+
mapDispatchToProps: ActionCreatorsMapObject | FixTypeLater
118
) {
129
return typeof mapDispatchToProps === 'function'
1310
? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps')

0 commit comments

Comments
 (0)