Skip to content

Commit 422b98a

Browse files
authored
fix: Fix wrong param type in definitions for String.fromCharCodes (#2316)
1 parent c8ecb53 commit 422b98a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

std/assembly/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ declare class StaticArray<T> {
18021802
/** Class representing a sequence of characters. */
18031803
declare class String {
18041804
static fromCharCode(ls: i32, hs?: i32): string;
1805-
static fromCharCodes(arr: u16[]): string;
1805+
static fromCharCodes(arr: i32[]): string;
18061806
static fromCodePoint(code: i32): string;
18071807
static fromCodePoints(arr: i32[]): string;
18081808
static raw(parts: TemplateStringsArray, ...args: any[]): string;

std/portable/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ declare const JSMath: typeof Math;
309309

310310
declare interface StringConstructor {
311311
/** Equivalent to calling `String.fromCharCode` with multiple arguments. */
312-
fromCharCodes(arr: u16[]): string;
312+
fromCharCodes(arr: i32[]): string;
313313
/** Equivalent to calling `String.fromCodePoint` with multiple arguments. */
314314
fromCodePoints(arr: i32[]): string;
315315
}

0 commit comments

Comments
 (0)