Fix tslint issues
This commit is contained in:
@@ -14,11 +14,12 @@ BigNumber.config({
|
|||||||
// Set a debug print function for NodeJS
|
// Set a debug print function for NodeJS
|
||||||
import isNode = require('detect-node');
|
import isNode = require('detect-node');
|
||||||
if (!isNode) {
|
if (!isNode) {
|
||||||
const util = require('util');
|
import util = require('util');
|
||||||
|
|
||||||
// Set a custom util.inspect function
|
// 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
|
// Return the readable string representation
|
||||||
|
// tslint:disable-next-line: no-invalid-this
|
||||||
return this.toString();
|
return this.toString();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user