@tmlmt/cooklang-parser / RawQuantityGroup
Interface: RawQuantityGroup
Represents a raw (unprocessed) group of quantities for a single ingredient. Returned by Recipe.getRawQuantityGroups, these are the pre-addition quantities that are fed internally to another non-public helper function 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.