Skip to content

Commit

Permalink
Remove [key: string] from BigNumber.Object, improve BigNumber.Object …
Browse files Browse the repository at this point in the history
…by adding a union with NaNObject
  • Loading branch information
iamdoron committed Feb 20, 2019
1 parent 8c34396 commit 788335b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bignumber.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export namespace BigNumber {
suffix?: string;
}

export interface Object {
interface RegularNumberObject {
/**
* The coefficient of the value of this BigNumber, an array of base 1e14 integer numbers.
*/
Expand All @@ -346,8 +346,9 @@ export namespace BigNumber {
*/
readonly s: number;

[key: string]: any;
}
type NaNObject = { readonly c: null, readonly e: null, readonly s: null };
export type Object = RegularNumberObject | NaNObject;
export type Instance = BigNumber;
export type ModuloMode = 0 | 1 | 3 | 6 | 9;
export type RoundingMode = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
Expand Down

0 comments on commit 788335b

Please # to comment.