TypeScript-TmLanguage/tests/cases/Issue695.ts

6 строки
239 B
TypeScript

export type bindActionsToPayloadReturns = <A, M extends ActionCreatorsMapObject<A>>(
actionCreators: M,
dispatch: Dispatch
) => ActionsWithPromises<M>;
export const bindActions = bindActionCreators as bindActionsToPayloadReturns;