import { Action } from '@ngrx/store' ; import { NavigationExtras } from '@angular/router' ; export const GO = '[Router] Go' ; export const BACK = '[Router] Back' ; export const FORWARD = '[Router] Forward' ; export const RESET_APP = '[Router] Reset APP' ; export class Go implements Action { readonly type = GO ; constructor ( public payload ) { } } export class Back implements Action { readonly type = BACK ; } export class Forward implements Action { readonly type = FORWARD ; } export class ResetApp implements Action { readonly type = RESET_APP ; } export type Actions = Go | Back | Forward | ResetApp ;