import { Injectable } from '@angular/core'; import { Action } from '@ngrx/store'; export interface SharedAction extends Action { type: string; payload?: any; } @Injectable() export class SharedActions { static REVERT = '[Shared Action] Revert'; revert (revertKeys: Array): SharedAction { return { type: SharedActions.REVERT, payload: {revertKeys} }; } }