Closed jbrower2 closed 2 years ago
Does it work?
I've modified bignumber.d.ts in an existing TypeScript project within the node_modules directory, and TypeScript is happy with the change. I haven't done any thorough testing, but this alleviates the TypeScript error and I can't imagine it would have any negative side-effects.
Okay, I'll try and test it more thoroughly during the week.
@MikeMcl whats the status on this? would be nice to have now that we migrate to typescript! Btw thanks for an awesome lib!
Add TypeScript binding to allow instantiating
BigNumber
without thenew
keywordI opted against adding jsdoc to this binding, only because there was no way to link directly to the constructor itself.