Skip to content

Commit d9bb869

Browse files
committed
Add regression test
1 parent 3afe0a4 commit d9bb869

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)