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

@tmlmt/cooklang-parser / WithOptionalQuantity

Type Alias: WithOptionalQuantity<T>

WithOptionalQuantity<T> = T & MaybeScalableQuantity | T & object

Defines a type containing an optional QuantityWithExtendedUnit with scalability and potential info about equivalents

Used in IngredientAlternative

Type Parameters

T

T

The base type to which the optional quantity properties will be added.