Skip to content

Add radix argument for standart definition file #1290

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

Merged
merged 5 commits into from
May 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions std/assembly/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ declare class _Integer {
/** Converts a string to an integer of this type. */
static parseInt(value: string, radix?: number): number;
/** Converts this integer to a string. */
toString(): string;
toString(radix?: number): string;
}

/** Pseudo-class representing the backing class of floating-point types. */
Expand Down Expand Up @@ -1092,7 +1092,7 @@ declare class _Float {
/** Converts a string to a floating-point number. */
static parseFloat(value: string): f32 | f64;
/** Converts this floating-point number to a string. */
toString(this: f64): string;
toString(radix?: number): string;
}

/** Backing class of signed 8-bit integers. */
Expand Down Expand Up @@ -1571,7 +1571,7 @@ declare class TypeError extends Error { }
declare class SyntaxError extends Error { }

interface Boolean {
toString(): string;
toString(radix?: number): string;
}

interface Number {
Expand Down