We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
bignumber.js in TheoremJS with typescript
arguiot/TheoremJS#25
I need import bignumber.js globally for browser, import bignumber.js as a module for node.
In this case, for browser , need a global kind .d.ts file. and then it works
But bignumber.js only has a module kind .d.ts file.
The text was updated successfully, but these errors were encountered:
may a module-class kind .d.ts file is better.
see here or below picture.
Sorry, something went wrong.
Yes, previously the .d.ts file did include global typings, see #143.
I'll consider creating a separate global typings file, as I did with decimal.js.
Note to myself: previously the .d.ts file contained the following at the end of the file.
declare global { const BigNumber: BigNumberConstructor; type BigNumber = BigNumberInstance; namespace BigNumber { type Config = BigNumberConfig; type Constructor = BigNumberConstructor; type Format = BigNumberFormat; type Instance = BigNumberInstance; type ModuloMode = BigNumberModuloMode; type RoundingMode = BigNumberRoundingMode; type Value = BigNumberValue; } }
No branches or pull requests
bignumber.js in TheoremJS with typescript
arguiot/TheoremJS#25
I need import bignumber.js globally for browser, import bignumber.js as a module for node.
In this case, for browser , need a global kind .d.ts file.
and then it works
But bignumber.js only has a module kind .d.ts file.
The text was updated successfully, but these errors were encountered: