@tmlmt/cooklang-parser / IngredientItem
Interface: IngredientItem
Represents an ingredient item in a recipe step.
Properties
displayName
displayName:
string
The alias/name of the ingredient as it should be displayed in the preparation for this occurence
index
index:
number
The index of the ingredient, within the list of ingredients
quantityPartIndex?
optionalquantityPartIndex:number
Index of the quantity part corresponding to this item / this occurence of the ingredient, which may be referenced elsewhere.
type
type:
"ingredient"
The type of the item.