Skip to content

Commit b1e300f

Browse files
committed
chore: resolve conflicts
1 parent d9200e1 commit b1e300f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/utils/bindActionCreators.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@ function bindActionCreator<A extends AnyAction = AnyAction>(
1515
}
1616

1717
export default function bindActionCreators(
18-
actionCreators: ActionCreator<any> | ActionCreatorsMapObject,
18+
actionCreators: ActionCreatorsMapObject,
1919
dispatch: Dispatch
20-
): ActionCreatorsMapObject | ActionCreator<any> {
21-
if (typeof actionCreators === 'function') {
22-
return bindActionCreator(actionCreators, dispatch)
23-
}
24-
20+
): ActionCreatorsMapObject {
2521
const boundActionCreators: ActionCreatorsMapObject = {}
22+
2623
for (const key in actionCreators) {
2724
const actionCreator = actionCreators[key]
2825
if (typeof actionCreator === 'function') {

0 commit comments

Comments
 (0)