@tmlmt/cooklang-parser / UnitFractionConfig
Interface: UnitFractionConfig
Configuration for fraction display on a unit
Properties
denominators?
optionaldenominators:number[]
Allowed denominators (default: [2, 3, 4, 8])
enabled
enabled:
boolean
Whether to approximate decimals as fractions for this unit
maxWhole?
optionalmaxWhole:number
Maximum whole number in mixed fraction before falling back to decimal (default: 4)