restaurant-menu-challenge - v0.1.0
    Preparing search index...

    Type Alias CartStore

    Store global do carrinho de compras.

    type CartStore = {
        addItem: (item: CartItem) => void;
        calculateTotal: () => void;
        changeQuantity: (id: number, quantity: number) => void;
        clearCart: () => void;
        isLoading: boolean;
        items: CartItem[];
        removeItem: (id: number) => void;
        total: number;
    }
    Index

    Properties

    addItem: (item: CartItem) => void
    calculateTotal: () => void
    changeQuantity: (id: number, quantity: number) => void
    clearCart: () => void
    isLoading: boolean
    items: CartItem[]
    removeItem: (id: number) => void
    total: number