import type { EvaluationReduxAction, ReduxAction, } from "ee/constants/ReduxActionConstants"; import { ReduxActionTypes } from "ee/constants/ReduxActionConstants"; // TODO: Fix this the next time the file is edited // eslint-disable-next-line @typescript-eslint/no-explicit-any export const batchAction = (action: EvaluationReduxAction) => ({ type: ReduxActionTypes.BATCHED_UPDATE, payload: action, }); export type BatchAction = ReduxAction>; // TODO: Fix this the next time the file is edited // eslint-disable-next-line @typescript-eslint/no-explicit-any export const batchActionSuccess = (actions: ReduxAction[]) => ({ type: ReduxActionTypes.BATCH_UPDATES_SUCCESS, payload: actions, });