export default class AppOrder { order: undefined } declare global { interface IAppCategory extends ICategory { parentId: string categories: IAppCategory[] isSet: boolean menus: IAppMenuItem[] // 單點 sets: IAppSet[] // 套餐 isInSetCategories: boolean path: string } // 單點或套餐餐點 interface IAppMenuItem extends IMenu { menuId: string // IMenu 中是套餐才有。但 App 中非套餐也會把 menu.id 寫入 menuId,讓套餐和非套餐的 menuId 統一指向原始的餐點 path: string } interface IAppSet extends ISet { menus: IAppMenuItem[] } interface IAppSetStep extends ISetStep { id: string // copy from key parentId: string // set category's parent id, ex. Dinner menu setId: string // set category id, ex. Dinner Set 1 isSetStep: true path: string } }