TypeScript/tests/cases/compiler/getParameterNameAtPosition.ts
2019-03-01 16:34:23 -08:00

12 lines
347 B
TypeScript

// @strict: true
// Repro from #30171
interface Mock<Y extends any[]> extends Function {
(...args: Y): any;
}
type Tester = (opts: any, done: (...args: any[]) => any) => any;
declare function cases(tester: Tester): void;
declare function fn<Y extends any[]>(implementation?: (...args: Y) => any): Mock<Y>;
cases(fn(opts => { }));