Skip to content

Commit

Permalink
Fix #251 (#308)
Browse files Browse the repository at this point in the history
Add TypeScript binding to allow instantiating BigNumber without the `new` keyword
  • Loading branch information
jbrower2 committed Aug 8, 2022
1 parent f346406 commit b951358
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bignumber.d.ts
Expand Up @@ -1827,3 +1827,5 @@ export declare class BigNumber implements BigNumber.Instance {
*/
static set(object: BigNumber.Config): BigNumber.Config;
}

export function BigNumber(n: BigNumber.Value, base?: number): BigNumber;

0 comments on commit b951358

Please sign in to comment.