Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #251 #308

Merged
merged 1 commit into from Aug 8, 2022
Merged

Fix #251 #308

merged 1 commit into from Aug 8, 2022

Conversation

jbrower2
Copy link
Contributor

@jbrower2 jbrower2 commented Dec 5, 2021

Add TypeScript binding to allow instantiating BigNumber without the new keyword

I opted against adding jsdoc to this binding, only because there was no way to link directly to the constructor itself.

Add TypeScript binding to allow instantiating BigNumber without the `new` keyword
@MikeMcl
Copy link
Owner

MikeMcl commented Dec 5, 2021

Does it work?

@jbrower2
Copy link
Contributor Author

jbrower2 commented Dec 5, 2021

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.

@MikeMcl
Copy link
Owner

MikeMcl commented Dec 5, 2021

Okay, I'll try and test it more thoroughly during the week.

@andidev
Copy link

andidev commented Feb 18, 2022

@MikeMcl whats the status on this? would be nice to have now that we migrate to typescript!
Btw thanks for an awesome lib!

@MikeMcl MikeMcl merged commit b951358 into MikeMcl:master Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants