move SiDef type (#485)

This commit is contained in:
Keith Ingram
2019-10-31 19:19:56 +02:00
committed by GitHub
parent 225ca1de00
commit 2f5df085b6
3 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -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;
+1 -5
View File
@@ -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;
+6
View File
@@ -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