Application Load

ICartPreviewState

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

ICartPreviewState

State of the cart preview: whether it is open or loading, its products and the removals in progress.

src/lib/interfaces/orionplace/cart/ICartModal.ts
TypeScript
export interface ICartPreviewState {
  // Whether the preview is open.
  open: boolean;
  // A product-list request is in progress.
  pending: boolean;
  // Products from `page_data.cart_data`.
  products: IProduct[];
  // Error text; an empty string means no error.
  error: string;
  // Cart-item IDs whose removal request is in progress.
  removing: number[];
  // Removal error text; an empty string means no error.
  removeError: string;
}