import type { EvaluationReduxAction, ReduxAction, } from "@appsmith/constants/ReduxActionConstants"; import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; export const batchAction = (action: EvaluationReduxAction) => ({ type: ReduxActionTypes.BATCHED_UPDATE, payload: action, }); export type BatchAction = ReduxAction>; export const batchActionSuccess = (actions: ReduxAction[]) => ({ type: ReduxActionTypes.BATCH_UPDATES_SUCCESS, payload: actions, });