@@ -11,7 +11,9 @@ export const CoinKind = {
11
11
FIAT : 'fiat' ,
12
12
} as const ;
13
13
14
- export type CoinKind = ( typeof CoinKind ) [ keyof typeof CoinKind ] ;
14
+ export type CoinKindKey = keyof typeof CoinKind ;
15
+ export type CoinKindValue = ( typeof CoinKind ) [ keyof typeof CoinKind ] ;
16
+ export type CoinKind = CoinKindValue ;
15
17
16
18
/**
17
19
* The coin family links related variants of a single coin together.
@@ -101,7 +103,9 @@ export const CoinFamily = {
101
103
ZKETH : 'zketh' ,
102
104
} as const ;
103
105
104
- export type CoinFamily = ( typeof CoinFamily ) [ keyof typeof CoinFamily ] ;
106
+ export type CoinFamilyKey = keyof typeof CoinFamily ;
107
+ export type CoinFamilyValue = ( typeof CoinFamily ) [ keyof typeof CoinFamily ] ;
108
+ export type CoinFamily = CoinFamilyValue ;
105
109
106
110
/**
107
111
* Coin features are yes or no questions about what a coin requires or is capable of.
@@ -406,7 +410,9 @@ export const CoinFeature = {
406
410
REBASE_TOKEN : 'rebase-token' ,
407
411
} as const ;
408
412
409
- export type CoinFeature = ( typeof CoinFeature ) [ keyof typeof CoinFeature ] ;
413
+ export type CoinFeatureKey = keyof typeof CoinFeature ;
414
+ export type CoinFeatureValue = ( typeof CoinFeature ) [ keyof typeof CoinFeature ] ;
415
+ export type CoinFeature = CoinFeatureValue ;
410
416
411
417
/**
412
418
* Some coins are representations of another underlying asset class. An example
@@ -2814,7 +2820,9 @@ export const UnderlyingAsset = {
2814
2820
USD : 'usd' ,
2815
2821
} as const ;
2816
2822
2817
- export type UnderlyingAsset = ( typeof UnderlyingAsset ) [ keyof typeof UnderlyingAsset ] ;
2823
+ export type UnderLyingAssetKey = keyof typeof UnderlyingAsset ;
2824
+ export type UnderlyingAssetValue = ( typeof UnderlyingAsset ) [ keyof typeof UnderlyingAsset ] ;
2825
+ export type UnderlyingAsset = UnderlyingAssetValue ;
2818
2826
2819
2827
/**
2820
2828
* This is the curve BitGo signs against with the user, backup and BitGo key.
@@ -2824,7 +2832,9 @@ export const KeyCurve = {
2824
2832
Ed25519 : 'ed25519' ,
2825
2833
} as const ;
2826
2834
2827
- export type KeyCurve = ( typeof KeyCurve ) [ keyof typeof KeyCurve ] ;
2835
+ export type KeyCurveKey = keyof typeof KeyCurve ;
2836
+ export type KeyCurveValue = ( typeof KeyCurve ) [ keyof typeof KeyCurve ] ;
2837
+ export type KeyCurve = KeyCurveValue ;
2828
2838
2829
2839
/**
2830
2840
* This enum contains the base units for the coins that BitGo supports
@@ -2883,7 +2893,9 @@ export const BaseUnit = {
2883
2893
TASI : 'atestfet' ,
2884
2894
} as const ;
2885
2895
2886
- export type BaseUnit = ( typeof BaseUnit ) [ keyof typeof BaseUnit ] ;
2896
+ export type BaseUnitKey = keyof typeof BaseUnit ;
2897
+ export type BaseUnitValue = ( typeof BaseUnit ) [ keyof typeof BaseUnit ] ;
2898
+ export type BaseUnit = BaseUnitValue ;
2887
2899
2888
2900
export interface BaseCoinConstructorOptions {
2889
2901
id : string ; // uuid v4
0 commit comments