File

src/app/Restaurant.ts

Index

Properties

Properties

_id
_id: string
Type : string
menuItems
menuItems: MenuItem[]
Type : MenuItem[]
Optional
name
name: string
Type : string
owner
owner: string
Type : string
user
user: string
Type : string
export interface MenuItem {
  _id: string;
  name: string;
  price: number;
  quantity: number;
}

export interface Restaurant {
  _id: string;
  name: string;
  owner: string;
  user: string;
  menuItems?: MenuItem[]; // Add the menuItems property as an optional array of MenuItem

}

results matching ""

    No results matching ""