formatBalance adjustments (#536)

* formatBalance extensions

* Fly-by any removals

* isBn updates

* Remove unneeded ()'s
This commit is contained in:
Jaco Greeff
2020-02-17 12:16:02 +01:00
committed by GitHub
parent dca36e41fd
commit 171015fbba
8 changed files with 38 additions and 22 deletions
+1 -2
View File
@@ -19,7 +19,6 @@ import BN from 'bn.js';
* console.log('isBn', isBn(new BN(1))); // => true
* ```
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default function isBn (value: any): value is BN {
export default function isBn (value: object | string | number | undefined | null): value is BN {
return BN.isBN(value);
}