Fix tslint issues
This commit is contained in:
parent
71a61a4dc3
commit
9b4f5dfdda
@ -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();
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user