parse-ingredient - v3.0.0
    Preparing search index...

    Interface UnitOfMeasure

    Unit of measure properties.

    All properties are readonly: the shipped unitsOfMeasure definitions are deep-frozen, so writing to one would throw at runtime.

    interface UnitOfMeasure {
        alternates?: readonly string[];
        conversionFactor?: number | MultiSystemConversionFactor;
        plural: string;
        short: string;
        type?: UnitType;
    }
    Index
    alternates?: readonly string[]

    List of all known alternate spellings, abbreviations, etc.

    []
    
    conversionFactor?: number | MultiSystemConversionFactor

    Conversion factor to base unit (ml for volume, g for mass, mm for length). A number means the same factor applies to all systems. An object with us, imperial, and/or metric keys means the factor differs by system.

    plural: string

    Full name of the unit used when quantity is greater than one.

    short: string

    Abbreviation or short name for the unit.

    type?: UnitType

    The type of measurement (volume, mass, length, count, or other).