unitsdb 0.1.1 → 0.1.2
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/dist/data/unitsdb.json +1 -1
- package/dist/index.d.ts +6 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export interface DerivedBase {
|
|
|
23
23
|
} | null;
|
|
24
24
|
power: string | number | null;
|
|
25
25
|
}
|
|
26
|
+
export interface QuantityReferenceRef {
|
|
27
|
+
id: string;
|
|
28
|
+
primary?: boolean;
|
|
29
|
+
}
|
|
26
30
|
export interface UnitRecord {
|
|
27
31
|
identifiers?: Identifier[];
|
|
28
32
|
names?: LocalizedString[];
|
|
@@ -32,7 +36,7 @@ export interface UnitRecord {
|
|
|
32
36
|
dimension_reference?: {
|
|
33
37
|
id: string;
|
|
34
38
|
} | null;
|
|
35
|
-
quantity_references?:
|
|
39
|
+
quantity_references?: QuantityReferenceRef[];
|
|
36
40
|
}
|
|
37
41
|
export interface PrefixRecord {
|
|
38
42
|
identifiers?: Identifier[];
|
|
@@ -66,7 +70,7 @@ export interface CurrencyRecord {
|
|
|
66
70
|
minor_unit_exponent?: number;
|
|
67
71
|
status?: string;
|
|
68
72
|
unit_system_reference?: Identifier[];
|
|
69
|
-
quantity_references?:
|
|
73
|
+
quantity_references?: QuantityReferenceRef[];
|
|
70
74
|
notes?: string | null;
|
|
71
75
|
}
|
|
72
76
|
export declare const Unitsdb: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unitsdb",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "UnitsDB in TypeScript: typed access to the units database (units, prefixes, dimensions, quantities, currencies) rebuilt from unitsml/unitsdb releases",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|