PromucFlow_constructor/app/client/src/actions/batchActions.ts

9 lines
264 B
TypeScript
Raw Normal View History

2020-04-13 08:24:13 +00:00
import { ReduxAction, ReduxActionTypes } from "constants/ReduxActionConstants";
export const batchAction = (action: ReduxAction<any>) => ({
type: ReduxActionTypes.BATCHED_UPDATE,
payload: action,
});
export type BatchAction<T> = ReduxAction<ReduxAction<T>>;