@tmlmt/cooklang-parser / IngredientQuantityGroup
Interface: IngredientQuantityGroup
Represents a group of summed quantities for an ingredient, optionally with alternatives. Quantities with the same alternative signature are summed together into a single group. When units are incompatible, separate IngredientQuantityGroup entries are created instead of merging.
Extends
Properties
alternatives?
optionalalternatives:AlternativeIngredientRef[]
References to alternative ingredients for this quantity group. If undefined, this group has no alternatives.
equivalents?
optionalequivalents:QuantityWithPlainUnit[]
Optional equivalent quantities in different units (for alternative units like @flour{100%g|3.5%oz})
Inherited from
QuantityWithPlainUnit.equivalents
quantity
quantity:
FixedValue|Range
Inherited from
QuantityWithPlainUnit.quantity
unit?
optionalunit:string