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

    Interface QuantityObject

    Represents a quantity measurement with a numeric value and unit. Used for specifying product amounts and their units of measurement.

    const quantity: QuantityObject = {
    quantity: 100,
    uom: "g"
    };
    console.log(`${quantity.quantity}${quantity.uom}`); // "100g"
    interface QuantityObject {
        quantity: number;
        uom: string;
    }
    Index

    Properties

    Properties

    quantity: number

    The numeric amount of the quantity

    uom: string

    The unit of measurement (e.g., 'g', 'ml', 'kg')