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

@tmlmt/cooklang-parser / MaybeScalableQuantity

Type Alias: MaybeScalableQuantity

MaybeScalableQuantity = QuantityWithExtendedUnit & object

Type Declaration

equivalents?

optional equivalents: QuantityWithExtendedUnit[]

A list of equivalent quantities/units for this ingredient mention besides the primary quantity. For @salt{1%tsp|5%g}, the main quantity is 1 tsp and the equivalents will contain 5 g.

scalable

scalable: boolean

Indicates whether this quantity should be scaled when the recipe serving size changes.