Files
dspace-angular/src/app/store.actions.ts
Yura Bondarenko 245977a432 87968: Automatic migration from TSLint to ESLint
Via `ng g @angular-eslint/schematics:convert-tslint-to-eslint`
2022-04-08 17:57:16 +02:00

19 lines
512 B
TypeScript

import { type } from './shared/ngrx/type';
import { Action } from '@ngrx/store';
import { AppState } from './app.reducer';
export const StoreActionTypes = {
REHYDRATE: type('dspace/ngrx/REHYDRATE'),
REPLAY: type('dspace/ngrx/REPLAY'),
};
export class StoreAction implements Action {
type: string;
payload: AppState | Action[];
// eslint-disable-next-line @typescript-eslint/no-shadow
constructor(type: string, payload: AppState | Action[]) {
this.type = type;
this.payload = payload;
}
}