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

@tmlmt/cooklang-parser / RecipeChoices

Interface: RecipeChoices ​

Represents the choices to apply when computing ingredient quantities. Maps item/group IDs to the index of the selected alternative.

Properties ​

ingredientGroups? ​

optional ingredientGroups?: Map<string, number>

Map of choices that can be made for Grouped Ingredient StepItem's


ingredientItems? ​

optional ingredientItems?: Map<string, number>

Map of choices that can be made at Ingredient StepItem level


variant? ​

optional variant?: string

The selected variant name