@tmlmt/cooklang-parser / Ingredient
Interface: Ingredient
Represents an ingredient in a recipe.
Properties
extras?
optionalextras:IngredientExtras
The collection of potential additional metadata for the ingredient
flags?
optionalflags:IngredientFlag[]
A list of potential state modifiers or other flags for the ingredient
name
name:
string
The name of the ingredient.
preparation?
optionalpreparation:string
The preparation of the ingredient.
quantity?
optionalquantity:FixedValue|Range
The quantity of the ingredient.
quantityParts?
optionalquantityParts:QuantityPart[]
The array of contributors to the ingredient's total quantity.
unit?
optionalunit:string
The unit of the ingredient.