agmission/Development/client/src/app/actions/app.actions.ts

27 lines
654 B
TypeScript

import { Action } from "@ngrx/store";
export const SEL_LANG = '[APP] Select a language';
export class SelLang implements Action {
type: typeof SEL_LANG = SEL_LANG;
constructor(readonly lang: string) { }
}
export const SEL_LANG_SUCCESS = '[APP] Select a language success';
export class SelLangSuccess implements Action {
type: typeof SEL_LANG_SUCCESS = SEL_LANG_SUCCESS;
constructor(readonly lang: string) {
}
}
export const SEL_LANG_ERROR = '[APP] Select a language failed';
export class SelLangError implements Action {
type: typeof SEL_LANG_ERROR = SEL_LANG_ERROR;
}
export type All =
| SelLang | SelLangSuccess | SelLangError