( actionCreator: ActionCreator<A>, dispatch: Dispatch<A> )
| 3 | import { kindOf } from class="st">'./utils/kindOf' |
| 4 | |
| 5 | function bindActionCreator<A extends Action>( |
| 6 | actionCreator: ActionCreator<A>, |
| 7 | dispatch: Dispatch<A> |
| 8 | ) { |
| 9 | return function (this: any, ...args: any[]) { |
| 10 | return dispatch(actionCreator.apply(this, args)) |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Turns an object whose values are action creators, into an object with the |
no test coverage detected