Skip to content

Commit

Permalink
fix: add FixTypeLater
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-go committed Jul 8, 2021
1 parent 5331a1e commit eb87735
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/connect/mapDispatchToProps.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { ActionCreatorsMapObject, Dispatch } from 'redux'
import { FixTypeLater } from '../types'
import bindActionCreators from '../utils/bindActionCreators'
import {
MapToProps,
wrapMapToPropsConstant,
wrapMapToPropsFunc,
} from './wrapMapToProps'
import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps'

export function whenMapDispatchToPropsIsFunction(
mapDispatchToProps: ActionCreatorsMapObject | MapToProps
mapDispatchToProps: ActionCreatorsMapObject | FixTypeLater
) {
return typeof mapDispatchToProps === 'function'
? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps')
Expand Down

0 comments on commit eb87735

Please sign in to comment.