@tmlmt/cooklang-parser / RecipeAlternatives
Interface: RecipeAlternatives
Represents the choices one can make in a recipe
Properties
ingredientGroups
ingredientGroups:
Map<string,IngredientAlternative[]>
Map of choices that can be made for Grouped Ingredient StepItem's
- Keys are the Group IDs (e.g. "eggs" for
@|eggs|...) - Values are arrays of IngredientAlternative objects representing the choices available for that group
ingredientItems
ingredientItems:
Map<string,IngredientAlternative[]>
Map of choices that can be made at Ingredient StepItem level
- Keys are the Ingredient StepItem IDs (e.g. "ingredient-item-2")
- Values are arrays of IngredientAlternative objects representing the choices available for that item