類型“typeof BigNumber”的參數不能賦給類型“Value”的參數。
類型“typeof BigNumber”缺少類型“Instance”中的以下屬性: c, e, s
原來:
bigNumber._toFixed = function (...arg: any) { return new bigNumber(this).isNaN() ? '0' : new bigNumber(_this.toFixed(...arg)).toString(); };
修改后:
bigNumber._toFixed = function (...arg: any) { const _this = Number(this); return new bigNumber(_this).isNaN() ? '0' : new bigNumber(_this.toFixed(...arg)).toString(); };