9 lines
193 B
TypeScript
9 lines
193 B
TypeScript
import { bindActionCreators as bind, Dispatch } from 'redux'
|
|
|
|
export function bindActionCreators<T extends object>(
|
|
obj: T,
|
|
dispatch: Dispatch,
|
|
): T {
|
|
return bind(obj as any, dispatch)
|
|
}
|