Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const COOK_PIZZA = '[Pizza] Cook';
- export const ORDER_PIZZA = '[Pizza] Order';
- export const ORDER_PIZZA_SUCCESS = '[Pizza] Order Success';
- export class CookPizza implements Action {
- readonly type = COOK_PIZZA;
- }
- export class OrderPizza implements Action {
- readonly type = ORDER_PIZZA;
- constructor(public payload: string[]) {}
- }
- export class OrderPizzaSuccess implements Action {
- readonly type = ORDER_PIZZA_SUCCESS;
- constructor(public payload: string[]) {}
- }
- export type PizzaActionTypes = CookPizza | OrderPizza | OrderPizzaSuccess;
Add Comment
Please, Sign In to add comment