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

@tmlmt/cooklang-parser / RecipeWithFactor

Interface: RecipeWithFactor ​

Represents a recipe together with a scaling factor

Properties ​

choices? ​

optional choices?: RecipeChoices

The choices for alternative ingredients.


factor ​

factor: number

The factor the recipe is scaled by.


path? ​

optional path?: string

The recipe file path for serialization (e.g. "./Complex Recipe")


recipe ​

recipe: Recipe

The recipe that was added.