Tighten signature of append (#59426)

This commit is contained in:
Jake Bailey
2024-07-26 10:08:40 -07:00
committed by GitHub
parent 12ae799eda
commit 74cefa848c
3 changed files with 12 additions and 17 deletions

View File

@@ -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[] {