Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (26 sloc) 842 Bytes
import { Action } from '@ngrx/store';
import { type } from '../utils';
export const ActionTypes = {
CHANGE: type('[Search] Change'),
ITEMS: type('[Search] Items'),
TOTALRESULTS: type('[Search] Totalresults'),
NAVIGATION: type('[Search] Navigation'),
};
export class SearchAction implements Action {
type = ActionTypes.CHANGE;
constructor(public payload: any) {}
}
export class ItemsAction implements Action {
type = ActionTypes.ITEMS;
constructor(public payload: any) {}
}
export class TotalResultsAction implements Action {
type = ActionTypes.TOTALRESULTS;
constructor(public payload: any) {}
}
export class NavigationAction implements Action {
type = ActionTypes.NAVIGATION;
constructor(public payload: any) {}
}
export type Actions
= SearchAction | ItemsAction | TotalResultsAction | NavigationAction ;
You can’t perform that action at this time.