Skip to content

@tmlmt/cooklang-parser / Ingredient

Interface: Ingredient

Represents an ingredient in a recipe.

Properties

hidden?

optional hidden: boolean

Whether the ingredient is hidden.


isRecipe?

optional isRecipe: boolean

Whether the ingredient is a recipe.


name

name: string

The name of the ingredient.


optional?

optional optional: boolean

Whether the ingredient is optional.


preparation?

optional preparation: string

The preparation of the ingredient.


quantity?

optional quantity: FixedValue | Range

The quantity of the ingredient.


unit?

optional unit: string

The unit of the ingredient.