``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
22 lines
430 B
TypeScript
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,
|
|
},
|
|
};
|
|
}
|