mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 16:56:06 -05:00
Tighten signature of append (#59426)
This commit is contained in:
@@ -80,7 +80,7 @@ describe("unittests:: tsbuildWatch:: watchEnvironment:: tsbuild:: watchMode:: wi
|
||||
watchOrSolution: solutionBuilder,
|
||||
});
|
||||
|
||||
function flatArray<T>(arr: T[][]): readonly T[] {
|
||||
function flatArray<T extends {}>(arr: T[][]): readonly T[] {
|
||||
return ts.flatMap(arr, ts.identity);
|
||||
}
|
||||
function pkgs<T>(cb: (index: number) => T): T[] {
|
||||
|
||||
Reference in New Issue
Block a user