Skip to content

Commit 5c9cd70

Browse files
authored
Add radix argument to stdlib definitions (#1290)
1 parent 0457b11 commit 5c9cd70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

std/assembly/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ declare class _Integer {
10581058
/** Converts a string to an integer of this type. */
10591059
static parseInt(value: string, radix?: number): number;
10601060
/** Converts this integer to a string. */
1061-
toString(): string;
1061+
toString(radix?: number): string;
10621062
}
10631063

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

10981098
/** Backing class of signed 8-bit integers. */
@@ -1571,7 +1571,7 @@ declare class TypeError extends Error { }
15711571
declare class SyntaxError extends Error { }
15721572

15731573
interface Boolean {
1574-
toString(): string;
1574+
toString(radix?: number): string;
15751575
}
15761576

15771577
interface Number {

0 commit comments

Comments
 (0)