mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
526 B
TypeScript
19 lines
526 B
TypeScript
//// [tests/cases/compiler/getParameterNameAtPosition.ts] ////
|
|
|
|
//// [getParameterNameAtPosition.ts]
|
|
// 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 => { }));
|
|
|
|
|
|
//// [getParameterNameAtPosition.js]
|
|
"use strict";
|
|
// Repro from #30171
|
|
cases(fn(opts => { }));
|