File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ export type UnitFrom<
58
58
*
59
59
* @group Unit Generators
60
60
*/
61
- export type UnitConversionRate < M extends UnitSubvalues > = Unit < { } , M > ;
61
+ export type UnitConversionRate < M extends UnitSubvalues > = number & {
62
+ readonly __uom_types__unit_meta : UnitMeta < M > ;
63
+ } ;
62
64
63
65
/**
64
66
* Create a {@link UnitConversionRate} from already existing {@link UnitMeta}.
@@ -107,6 +109,15 @@ export type UnknownAbstractUnit = number & {
107
109
readonly __uom_types__unit_class : UnknownUnitClass ;
108
110
} ;
109
111
112
+ /**
113
+ * An {@link UnitConversionRate} that we don't know anything about.
114
+ *
115
+ * @group Unknown Units
116
+ */
117
+ export type UnknownUnitConversionRate = number & {
118
+ readonly __uom_types__unit_meta : UnknownUnitMeta ;
119
+ } ;
120
+
110
121
/**
111
122
* A {@link UnitClass} that we don't know anything about.
112
123
*
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export type {
15
15
UnknownAbstractUnit ,
16
16
UnknownUnit ,
17
17
UnknownUnitClass ,
18
+ UnknownUnitConversionRate ,
18
19
UnknownUnitMeta ,
19
20
} from "./core" ;
20
21
export type {
You can’t perform that action at this time.
0 commit comments