We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8095607 commit 2b4dce0Copy full SHA for 2b4dce0
std/assembly/index.d.ts
@@ -1430,7 +1430,7 @@ declare class Array<T> {
1430
join(separator?: string): string;
1431
reverse(): T[];
1432
/** Flattens an array of arrays. If any null entries exist in the array, they are ignored, unlike JavaScript's version of Array#flat(). */
1433
- flat(): valueof<T>[];
+ flat(): T extends unknown[] ? T : never;
1434
toString(): string;
1435
}
1436
0 commit comments