@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?
optionalflags: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?
optionalusedAsPrimary:boolean
Whether this ingredient is used as a primary choice.