From eb877352d4d7595e901e9d9fde492f710ca85169 Mon Sep 17 00:00:00 2001 From: tony-go Date: Thu, 8 Jul 2021 08:57:24 +0200 Subject: [PATCH] fix: add FixTypeLater --- src/connect/mapDispatchToProps.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/connect/mapDispatchToProps.ts b/src/connect/mapDispatchToProps.ts index d6f779d10..aee587812 100644 --- a/src/connect/mapDispatchToProps.ts +++ b/src/connect/mapDispatchToProps.ts @@ -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')