You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/src/app/c-lightning/store/cl.actions.ts

23 lines
579 B
TypeScript

import { Action } from '@ngrx/store';
import { GetInfo } from '../../shared/models/clModels';
export const RESET_CL_STORE = 'RESET_CL_STORE';
export const FETCH_CL_INFO = 'FETCH_CL_INFO';
export const SET_CL_INFO = 'SET_CL_INFO';
export class ResetCLStore implements Action {
readonly type = RESET_CL_STORE;
}
export class FetchCLInfo implements Action {
readonly type = FETCH_CL_INFO;
}
export class SetCLInfo implements Action {
readonly type = SET_CL_INFO;
constructor(public payload: GetInfo) {}
}
export type CLActions =
ResetCLStore | FetchCLInfo | SetCLInfo;