aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-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();
};
}