File

src/app/Order.ts

Index

Properties

Properties

_id
_id: string
Type : string
address
address: string
Type : string
cart
cart: string
Type : string
createdAt
createdAt: Date
Type : Date
menuItems
menuItems: MenuItem[]
Type : MenuItem[]
paymentMethod
paymentMethod: "online" | "cash-on-delivery"
Type : "online" | "cash-on-delivery"
phone
phone: string
Type : string
status
status: "Pending" | "Processing" | "Shipped" | "Delivered"
Type : "Pending" | "Processing" | "Shipped" | "Delivered"
user
user: string
Type : string
import { MenuItem } from "./MenuItem";

export interface Order {
  _id: string;
  user: string;
  cart: string;
  status: 'Pending' | 'Processing' | 'Shipped' | 'Delivered';
  createdAt: Date;
  paymentMethod: 'online' | 'cash-on-delivery';
  address: string;
  phone: string;
  menuItems: MenuItem[]; // Update the type to MenuItem[]
}

results matching ""

    No results matching ""