@coveo/headless
    Preparing search index...

    Interface CartState

    The state of the Cart controller.

    interface CartState {
        items: CartItem[];
        totalPrice: number;
        totalQuantity: number;
    }
    Index

    Properties

    items: CartItem[]

    The items in the cart.

    totalPrice: number

    The sum total of the price multiplied by the quantity of each item in the cart.

    totalQuantity: number

    The sum total of the quantity of each item in the cart.