shelving 1.44.1 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util/units.d.ts +1 -1
- package/util/units.js +1 -0
package/package.json
CHANGED
package/util/units.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare type UnitData = {
|
|
|
14
14
|
/** Valid system of measurement reference. */
|
|
15
15
|
export declare type UnitType = "percentage" | "angle" | "temperature" | "length" | "speed" | "pace" | "mass" | "time" | "volume";
|
|
16
16
|
/** Valid unit of measurement reference (correspond to units allowed in `Intl.NumberFormat`, but not all). */
|
|
17
|
-
export declare type UnitReference = "percent" | "degree" | "millimeter" | "centimeter" | "meter" | "kilometer" | "mile" | "yard" | "foot" | "inch" | "liter" | "milliliter" | "gallon" | "fluid-ounce" | "gram" | "kilogram" | "pound" | "stone" | "ounce" | "millisecond" | "second" | "minute" | "day" | "hour" | "week" | "month" | "year";
|
|
17
|
+
export declare type UnitReference = "percent" | "degree" | "millimeter" | "centimeter" | "meter" | "kilometer" | "mile" | "yard" | "foot" | "inch" | "liter" | "milliliter" | "gallon" | "fluid-ounce" | "milligram" | "gram" | "kilogram" | "pound" | "stone" | "ounce" | "millisecond" | "second" | "minute" | "day" | "hour" | "week" | "month" | "year";
|
|
18
18
|
/** List of units. */
|
|
19
19
|
export declare const UNITS: {
|
|
20
20
|
[K in UnitReference]: UnitData;
|
package/util/units.js
CHANGED
|
@@ -18,6 +18,7 @@ export const UNITS = {
|
|
|
18
18
|
"liter": { type: "volume", base: 1000, suffix: "l" },
|
|
19
19
|
"fluid-ounce": { type: "volume", base: 29.5735295625, gallon: 128, suffix: `fl${NNBSP}oz` },
|
|
20
20
|
"gallon": { type: "volume", base: 3785.411784, suffix: "gal" },
|
|
21
|
+
"milligram": { type: "mass", base: 0.001, suffix: "mg" },
|
|
21
22
|
"gram": { type: "mass", base: 1, suffix: "g" },
|
|
22
23
|
"kilogram": { type: "mass", base: 1000, suffix: "kg" },
|
|
23
24
|
"ounce": { type: "mass", base: 28.349523125, pound: 0.0625, suffix: "oz" },
|