import { Action } from '@ngrx/store' ; import { type } from './../utils' ; export const ActionTypes = { ROOT_CHANGE_TAB : type ( "[Root] Change Tab" ) , CHANGE_MOVIES_CATEGORY : type ( "[Root] Change Movies Category" ) , } ; export class RootChangeTabAction implements Action { readonly type = ActionTypes . ROOT_CHANGE_TAB ; constructor ( public payload ) { } } export class ChangeMoviesCategoryAction implements Action { readonly type = ActionTypes . CHANGE_MOVIES_CATEGORY ; param payload constructor ( public payload ) { } } export type Actions = RootChangeTabAction | ChangeMoviesCategoryAction ;