@tmlmt/cooklang-parser
Classes
Diagnostics
Errors
- BadIndentationError
- CannotAddTextValueError
- DiagnosticError
- DivisionByZeroError
- DuplicateCategoryError
- DuplicateIngredientAliasError
- IncompatibleUnitsError
- IndexOutOfBoundsError
- IngredientWithoutCategoryError
- InvalidCategoryConfigError
- InvalidDateError
- InvalidPantryError
- InvalidPantryTomlError
- InvalidProductCatalogFormat
- InvalidProductCatalogTomlError
- InvalidQuantityFormat
- NoProductCatalogForCartError
- NoProductMatchError
- NoShoppingListForCartError
- NoTabAsIndentError
- ParseStoppedError
- RatioNotComputableError
- ReferencedCookwareNotFoundError
- ReferencedCookwarePropsDoNotMatchError
- ReferencedIngredientNotFoundError
- ReferencedIngredientPropsDoNotMatchError
- SingleDiagnosticError
- UnknownRecipePathError
- UnresolvedAlternativesError
Helpers
- convertQuantityToSystem
- formatExtendedQuantity
- formatItemQuantity
- formatNumericValue
- formatQuantity
- formatQuantityWithUnit
- formatSingleValue
- formatUnit
- getEffectiveChoices
- hasAlternatives
- isAlternativeSelected
- isAlternativesOnlyGroup
- isAndGroup
- isGroupedItem
- isNoteActive
- isSectionActive
- isSimpleGroup
- isStepActive
- parseFixedValue
- parseQuantityValue
- parseQuantityWithUnit
- renderFractionAsVulgar
- stringifyQuantityValue
Types
- AddedIngredient
- AddedRecipe
- AddedRecipeOptions
- AlternativeIngredientRef
- AndGroup
- ArbitraryScalable
- ArbitraryScalableItem
- CartContent
- CartMatch
- CartMisMatch
- CategorizedIngredients
- Category
- CategoryIngredient
- Cookware
- CookwareFlag
- CookwareItem
- DecimalValue
- Diagnostic
- DiagnosticCode
- DiagnosticSeverity
- DiagnosticSourcePosition
- DiagnosticSourceSpan
- FixedNumericValue
- FixedValue
- FlatAndGroup
- FlatGroup
- FlatOrGroup
- FractionValue
- GetIngredientQuantitiesOptions
- Group
- Ingredient
- IngredientAlternative
- IngredientAlternativeBase
- IngredientAlternativesOnlyGroup
- IngredientExtras
- IngredientFlag
- IngredientItem
- IngredientQuantityAndGroup
- IngredientQuantityGroup
- MaybeNestedAndGroup
- MaybeNestedGroup
- MaybeNestedOrGroup
- MaybeScalableQuantity
- Metadata
- MetadataObject
- MetadataSource
- MetadataTime
- MetadataValue
- NoProductMatchErrorCode
- Note
- NoteItem
- OrGroup
- PantryItem
- PantryItemToml
- PantryOptions
- ProductMatch
- ProductMisMatch
- ProductOption
- ProductOptionBase
- ProductOptionCore
- ProductSelection
- ProductSize
- QuantityBase
- QuantityWithExtendedUnit
- QuantityWithPlainUnit
- QuantityWithUnitDef
- QuantityWithUnitLike
- Range
- RawQuantityGroup
- RecipeAlternatives
- RecipeChoices
- RecipeWithFactor
- RecipeWithServings
- Section
- ShoppingCartOptions
- ShoppingCartSummary
- ShoppingListRecipeRef
- SpecificUnitSystem
- Step
- StepItem
- TextAttribute
- TextItem
- TextValue
- Timer
- TimerItem
- ToBaseBySystem
- Unit
- UnitDefinition
- UnitDefinitionLike
- UnitFractionConfig
- UnitSystem
- UnitType
- WithOptionalQuantity
- Yield