Skip to content

Commit

Permalink
Make JSBI constructor private in .d.ts. (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
12wrigja authored Apr 18, 2022
1 parent 351de40 commit 2ce8575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jsbi.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare class JSBI extends Array {
private sign;
constructor(length: number, sign: boolean);
private constructor();
static BigInt(arg: number | string | boolean | object): JSBI;
toDebugString(): string;
toString(radix?: number): string;
Expand Down
2 changes: 1 addition & 1 deletion lib/jsbi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.

class JSBI extends Array {
constructor(length: number, private sign: boolean) {
private constructor(length: number, private sign: boolean) {
super(length);
// Explicitly set the prototype as per
// https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
Expand Down

0 comments on commit 2ce8575

Please sign in to comment.