move SiDef type (#485)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user