Guest User

Untitled

a guest
Jan 10th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. export const COOK_PIZZA = '[Pizza] Cook';
  2. export const ORDER_PIZZA = '[Pizza] Order';
  3. export const ORDER_PIZZA_SUCCESS = '[Pizza] Order Success';
  4.  
  5. export class CookPizza implements Action {
  6. readonly type = COOK_PIZZA;
  7. }
  8.  
  9. export class OrderPizza implements Action {
  10. readonly type = ORDER_PIZZA;
  11. constructor(public payload: string[]) {}
  12. }
  13.  
  14. export class OrderPizzaSuccess implements Action {
  15. readonly type = ORDER_PIZZA_SUCCESS;
  16. constructor(public payload: string[]) {}
  17. }
  18.  
  19. export type PizzaActionTypes = CookPizza | OrderPizza | OrderPizzaSuccess;
Add Comment
Please, Sign In to add comment