import { ActionsUnion , createAction } from "../ActionHelper" ; import { IOrder } from "./OrderContracts" ; export enum OrderActionTypes { AddOrder = "Order/AddOrder" } export const OrderActions = { addOrder : ( order ) => createAction ( OrderActionTypes . AddOrder , { order } ) , } ; export type OrderActionsUnion = ActionsUnion < typeof OrderActions > ;