This commit is contained in:
Jake Bailey
2023-03-16 09:59:02 -07:00
committed by GitHub
parent 7f292bf2a1
commit e0124040f0
13 changed files with 122 additions and 78 deletions

View File

@@ -2,7 +2,7 @@
// @noEmit: true
// @lib: es2015
// repro from #52588
// See: https://github.com/microsoft/TypeScript/pull/53280#discussion_r1138684984
declare function test(
arg: Record<string, (arg: string) => void> | Array<(arg: number) => void>

View File

@@ -2,7 +2,7 @@
// @noEmit: true
// @lib: es5
// repro from #52588
// See: https://github.com/microsoft/TypeScript/pull/53280#discussion_r1138684984
declare function test(
arg: Record<string, (arg: string) => void> | Array<(arg: number) => void>

View File

@@ -1,5 +1,7 @@
// @lib: es2015
function f<T extends { "0": (p1: number) => number }>(p: T): T {
return p;
}
var v = f([x => x]);
var v = f([x => x]);