Skip to content

Commit 38fb86c

Browse files
committed
separate internal type-only imports in xchain-util
satisfies typescript's "verbatimModuleSyntax": true
1 parent 51a2844 commit 38fb86c

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

packages/xchain-util/src/asset.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@ import BigNumber from 'bignumber.js'
22

33
import { fixedBN, formatBN } from './bn'
44
import { trimZeros as trimZerosHelper } from './string'
5-
import {
5+
import type {
66
Amount,
77
AnyAsset,
88
Asset,
99
AssetAmount,
10-
AssetType,
1110
BaseAmount,
12-
Denomination,
1311
SecuredAsset,
1412
SynthAsset,
1513
TokenAsset,
1614
TradeAsset,
1715
} from './types'
16+
import { AssetType, Denomination } from './types'
1817

1918
export type Address = string
2019

packages/xchain-util/src/crypto-amount.ts

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
import type BigNumber from 'bignumber.js'
22

3-
import {
4-
AnyAsset,
5-
Asset,
6-
AssetAmount,
7-
BaseAmount,
8-
SecuredAsset,
9-
SynthAsset,
10-
TokenAsset,
11-
TradeAsset,
12-
assetToBase,
13-
assetToString,
14-
baseToAsset,
15-
eqAsset,
16-
formatAssetAmountCurrency,
17-
} from './'
3+
import type { AnyAsset, Asset, AssetAmount, BaseAmount, SecuredAsset, SynthAsset, TokenAsset, TradeAsset } from './'
4+
import { assetToBase, assetToString, baseToAsset, eqAsset, formatAssetAmountCurrency } from './'
185

196
/**
207
* Utility Class to combine an amount (asset/base) with the Asset

packages/xchain-util/src/types/asset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Chain } from './chain'
1+
import type { Chain } from './chain'
22

33
/**
44
* Asset type

0 commit comments

Comments
 (0)