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

@tmlmt/cooklang-parser / AlternativeIngredientRef

Interface: AlternativeIngredientRef

Represents a reference to an alternative ingredient along with its quantities.

Used in IngredientQuantityGroup to describe what other ingredients could be used in place of the main ingredient.

Properties

index

index: number

The index of the alternative ingredient within the Recipe.ingredients array.


quantities?

optional quantities: QuantityWithPlainUnit[]

The quantities of the alternative ingredient. Multiple entries when units are incompatible.