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

Return type of sign() is Decimal in d.ts #209

Closed gterras closed 1 year ago

gterras commented 1 year ago

Hi,

https://github.com/MikeMcl/decimal.js/blob/3dcadc7351eace5dd61a48ad5bfea8c1dd388ec2/decimal.global.d.ts#L289

But as per the docs :

.sign(x) ⇒ number
typeof Decimal.sign(new Decimal(1)) // "number"
MikeMcl commented 1 year ago

Corrected. Thank you.

gterras commented 1 year ago

Thanks a lot do you plan to tag a release soon ?

MikeMcl commented 1 year ago

Published v10.4.2.