@tmlmt/cooklang-parser / GetIngredientQuantitiesOptions
Interface: GetIngredientQuantitiesOptions
Options for the getIngredientQuantities() method.
Properties
choices?
optionalchoices:RecipeChoices
The choices to apply when computing quantities. If not provided, uses primary alternatives (index 0 for all).
section?
optionalsection:number|Section
Filter ingredients to only those appearing in a specific section. Can be a Section object or section index (0-based).
step?
optionalstep:number|Step
Filter ingredients to only those appearing in a specific step. Can be a Step object or step index (0-based within the section, or global if no section specified).