Skip to content

@tmlmt/cooklang-parser / Ingredient

Interface: Ingredient

Represents an ingredient in a recipe.

Properties

extras?

optional extras: IngredientExtras

The collection of potential additional metadata for the ingredient


flags?

optional flags: IngredientFlag[]

A list of potential state modifiers or other flags for the ingredient


name

name: string

The name of the ingredient.


preparation?

optional preparation: string

The preparation of the ingredient.


quantity?

optional quantity: FixedValue | Range

The quantity of the ingredient.


quantityParts?

optional quantityParts: QuantityPart[]

The array of contributors to the ingredient's total quantity.


unit?

optional unit: string

The unit of the ingredient.