@suluk/nano-stores - v0.1.3
    Preparing search index...

    Interface CartLine

    One cart line. The merge key is (productId, variantId) — two variants of one product are DISTINCT lines. priceCents is the unit price at add-time; image/variantLabel let the drawer + checkout render richly.

    interface CartLine {
        productId: string | number;
        variantId?: string | number;
        qty: number;
        priceCents: number;
        name: string;
        image?: string;
        variantLabel?: string;
    }
    Index

    Properties

    productId: string | number
    variantId?: string | number

    the selected variant, if any — part of the merge key so size/colour pick distinct lines.

    qty: number
    priceCents: number
    name: string
    image?: string

    the line's display image (the variant's, falling back to the product's) — for the cart drawer + checkout.

    variantLabel?: string

    a human label for the chosen variant (e.g. "Black / M") — shown under the name.