⚠️ This is pre-release documentation for v3. For stable docs, visit v2.
Skip to content

@tmlmt/cooklang-parser / RawQuantityGroup

Interface: RawQuantityGroup

Represents a raw (unprocessed) group of quantities for a single ingredient. Returned by getRawQuantityGroups(), these are the pre-addition quantities that can be fed directly into addEquivalentsAndSimplify for cross-recipe aggregation.

Properties

flags?

optional flags: IngredientFlag[]

Flags on the ingredient (e.g., "hidden", "optional").


name

name: string

The name of the ingredient.


quantities

quantities: (QuantityWithExtendedUnit | FlatOrGroup<QuantityWithExtendedUnit>)[]

The raw, unprocessed quantities for this ingredient across all its mentions.


usedAsPrimary?

optional usedAsPrimary: boolean

Whether this ingredient is used as a primary choice.