我试图在TypeScript程序中使用BigNumber版本4.0.2。我创建写在打字稿一个简单的Node.js程序使用BigNumber此问题 https://github.com/naddison36/node-importsTypeScript BigNumber的类型定义
我真的努力让打字稿2.3.4在BigNumber类型定义拉的剥离下来的例子。有谁知道如何做到这一点?这是我到目前为止已经试过https://github.com/naddison36/node-imports#attempts-to-get-the-bignumber-type-definitions-to-work
理想情况下,我想简单地运行npm install bignumber.js --save
,npm install @types/bignumber.js --save
,使用ES6进口像import BigNumber from 'bignumber.js'
和具有打字稿只是工作。
任何帮助,将不胜感激
谢谢,您刚从我的项目中删除了200多个TypeScript错误。我会为类型定义提交一个PR。 – naddison
感谢开放公关,让世界变得更美好 – Catalyst