ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Type Alias GroupedItem<T>

    GroupedItem: T & { groupId: string; variants?: T[] }

    A product item extended with a group identifier and optional variant children. Used by SupplierBase.groupVariants to cluster product variants under a common listing.

    Type Parameters

    • T

      The base product/item type

    Type declaration

    • groupId: string

      Identifier derived from the product title (with quantity stripped) for grouping variants

    • Optionalvariants?: T[]

      Child variants that share the same groupId