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" Copy
const quantity: QuantityObject = { quantity: 100, uom: "g"};console.log(`${quantity.quantity}${quantity.uom}`); // "100g"
The numeric amount of the quantity
The unit of measurement (e.g., 'g', 'ml', 'kg')
Represents a quantity measurement with a numeric value and unit. Used for specifying product amounts and their units of measurement.
Example