Skip to content

TItemAddedToBasketEvent

TItemAddedToBasketEvent object

TItemAddedToBasketEvent is an object that represents an item that has been added to the basket.

type TItemAddedToBasketEvent = {
    addedItem: TAddedItem;
    product?: ProductBasket;
    basket: Basket;
    showAddedModal: boolean;
};

TAddedItem

Represents the object with the details of the added item and has the following shape:

type TAddedItem = {
    itemId: string;
    quantity: number;
    addedQuantity: number;
};

ProductBasket

Represents the ProductBasket model.

Basket

Represents the Basket model.