diff --git a/packages/util/src/format/formatBalance.ts b/packages/util/src/format/formatBalance.ts index 568277379..0f97f1293 100644 --- a/packages/util/src/format/formatBalance.ts +++ b/packages/util/src/format/formatBalance.ts @@ -2,14 +2,14 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ToBn } from '../types'; +import { SiDef, ToBn } from '../types'; import BN from 'bn.js'; import bnToBn from '../bn/toBn'; import isUndefined from '../is/undefined'; import formatDecimal from './formatDecimal'; -import { SI, SI_MID, SiDef, calcSi, findSi } from './si'; +import { SI, SI_MID, calcSi, findSi } from './si'; interface Defaults { decimals: number; diff --git a/packages/util/src/format/si.ts b/packages/util/src/format/si.ts index 5cabf36d3..a97b92137 100644 --- a/packages/util/src/format/si.ts +++ b/packages/util/src/format/si.ts @@ -2,11 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -export interface SiDef { - power: number; - text: string; - value: string; -} +import { SiDef } from '../types'; export const SI_MID = 8; diff --git a/packages/util/src/types.ts b/packages/util/src/types.ts index df093665e..a662fa88f 100644 --- a/packages/util/src/types.ts +++ b/packages/util/src/types.ts @@ -8,6 +8,12 @@ export interface ToBn { toBn: () => BN; } +export interface SiDef { + power: number; + text: string; + value: string; +} + // eslint-disable-next-line @typescript-eslint/no-explicit-any type Logger$Data$Fn = () => any[]; // eslint-disable-next-line @typescript-eslint/no-explicit-any