類型“typeof BigNumber”的參數不能賦給類型“Value”的參數。


類型“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();
};

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM