MikeMcl / decimal.js

An arbitrary-precision Decimal type for JavaScript
http://mikemcl.github.io/decimal.js
MIT License
6.35k stars 480 forks source link

Use typescript to develop the library. #197

Closed HanchaiN closed 2 years ago

HanchaiN commented 2 years ago

When developing the module, contributors should edit decimal.js, decimal.mjs, and probably decimal.d.ts and decimal.global.d.ts. It would be more convenient to work on a single .ts module and compile it to those files for users to use.

MikeMcl commented 2 years ago

Yes, I agree, but changes/additions to this library are likely to be minimal going forward and I have little incentive to spend time on doing that.

I will soon be releasing a more tree-shakeable version of this library - although I will probably just publish it separately as an ES module rather than Typescript module - and that is where future development is going to be focused.