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 3afe0a4 commit d9bb869Copy full SHA for d9bb869
tests/cases/compiler/getParameterNameAtPosition.ts
@@ -0,0 +1,11 @@
1
+// @strict: true
2
+
3
+// Repro from #30171
4
5
+interface Mock<Y extends any[]> extends Function {
6
+ (...args: Y): any;
7
+}
8
+type Tester = (opts: any, done: (...args: any[]) => any) => any;
9
+declare function cases(tester: Tester): void;
10
+declare function fn<Y extends any[]>(implementation?: (...args: Y) => any): Mock<Y>;
11
+cases(fn(opts => { }));
0 commit comments