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

@tmlmt/cooklang-parser / AddedRecipeOptions

Type Alias: AddedRecipeOptions

AddedRecipeOptions = object

Options for adding a recipe to a shopping list

Used in ShoppingList.addRecipe

Properties

choices?

optional choices?: RecipeChoices

The choices for alternative ingredients.


path?

optional path?: string

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


scaling?

optional scaling?: { factor: number; } | { servings: number; }

The scaling option for the recipe. Can be either a factor or a number of servings