2025-05-28 15:36:51 -07:00

22 lines
430 B
TypeScript

import AppErrorTypeEnum from "../../constants/AppErrorTypeEnum";
import * as types from "./actionTypes";
import { ErrorSetAction } from "./typings";
/**
*
* @param appErrorType
* @param errorId
*/
export function errorSet(
appErrorType: AppErrorTypeEnum,
errorId: string | null = null
): ErrorSetAction {
return {
type: types.ERROR_SET,
payload: {
appErrorType: appErrorType,
errorId,
},
};
}