headless-commerce
    Preparing search index...

    Type Alias CartAction

    CartAction:
        | { product: Product; quantity?: number; type: "add" }
        | { type: "clear" }
        | { type: "close" }
        | { slug: string; type: "decrement" }
        | { items: readonly CartLineItem[]; type: "hydrate" }
        | { slug: string; type: "increment" }
        | { type: "open" }
        | { slug: string; type: "remove" }

    Intent-based cart actions consumed by the pure reducer.