Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import { Action } from '@ngrx/store';
  2. import { Book } from './book-model';
  3.  
  4. export const SEARCH = '[Books] Search';
  5. export const SEARCH_SUCCESS = '[Books] Search Success';
  6.  
  7. export class Search implements Action {
  8. readonly type = SEARCH;
  9.  
  10. constructor(public payload: string) {}
  11. }
  12.  
  13. export class SearchSuccess implements Action {
  14. readonly type = SEARCH_SUCCESS;
  15.  
  16. constructor(public payload: Book[]) {}
  17. }
  18.  
  19. export type All
  20. = Search
  21. | SearchSuccess;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement