aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/configured_bignumber.ts
diff options
context:
space:
mode:
authorRemco Bloemen <remco@wicked.ventures>2018-08-22 05:32:31 +0800
committerRemco Bloemen <remco@wicked.ventures>2018-08-22 05:32:31 +0800
commit9b4f5dfddae9defbd797dbd416868aa381c44b2c (patch)
tree7982e63c8cdecadcdaad7f050ac77eab7f126660 /packages/utils/src/configured_bignumber.ts
parent71a61a4dc331912cc015347d5cd22691ef9cd51b (diff)
downloaddexon-sol-tools-9b4f5dfddae9defbd797dbd416868aa381c44b2c.tar
dexon-sol-tools-9b4f5dfddae9defbd797dbd416868aa381c44b2c.tar.gz
dexon-sol-tools-9b4f5dfddae9defbd797dbd416868aa381c44b2c.tar.bz2
dexon-sol-tools-9b4f5dfddae9defbd797dbd416868aa381c44b2c.tar.lz
dexon-sol-tools-9b4f5dfddae9defbd797dbd416868aa381c44b2c.tar.xz
dexon-sol-tools-9b4f5dfddae9defbd797dbd416868aa381c44b2c.tar.zst
dexon-sol-tools-9b4f5dfddae9defbd797dbd416868aa381c44b2c.zip
Fix tslint issues
Diffstat (limited to 'packages/utils/src/configured_bignumber.ts')
-rw-r--r--packages/utils/src/configured_bignumber.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/utils/src/configured_bignumber.ts b/packages/utils/src/configured_bignumber.ts
index f97452337..a838b1e3b 100644
--- a/packages/utils/src/configured_bignumber.ts
+++ b/packages/utils/src/configured_bignumber.ts
@@ -14,11 +14,12 @@ BigNumber.config({
// Set a debug print function for NodeJS
import isNode = require('detect-node');
if (!isNode) {
- const util = require('util');
+ import util = require('util');
// Set a custom util.inspect function
- (BigNumber.prototype as any)[util.inspect.custom] = function() {
+ (BigNumber.prototype as any)[util.inspect.custom] = function(): string {
// Return the readable string representation
+ // tslint:disable-next-line: no-invalid-this
return this.toString();
};
}