ChemPare Documentation - v0.0.0
    Preparing search index...

    Interface UOMAliases

    Mapping of standard units of measurement to their various string representations. Used for normalizing unit of measurement strings from different suppliers.

    const uomAliases: UOMAliases = {
    [UOM.G]: ["g", "gram", "grams"],
    [UOM.KG]: ["kg", "kilo", "kilogram"],
    [UOM.ML]: ["ml", "milliliter", "milliliters"]
    };
    interface UOMAliases {
        pcs: string[];
        kg: string[];
        lb: string[];
        ml: string[];
        g: string[];
        l: string[];
        qt: string[];
        gal: string[];
        oz: string[];
        mg: string[];
        [key: number]: string[];
    }

    Indexable

    • [key: number]: string[]
    Index

    Properties

    Properties

    pcs: string[]

    Alternative strings representing pieces/units

    kg: string[]

    Alternative strings representing kilograms

    lb: string[]

    Alternative strings representing pounds

    ml: string[]

    Alternative strings representing milliliters

    g: string[]

    Alternative strings representing grams

    l: string[]

    Alternative strings representing liters

    qt: string[]

    Alternative strings representing quarts

    gal: string[]

    Alternative strings representing gallons

    oz: string[]

    Alternative strings representing ounces

    mg: string[]

    Alternative strings representing milligrams