Tighten signature of append (#59426)

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

No files matched your search

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