6 lines
No EOL
174 B
TypeScript
6 lines
No EOL
174 B
TypeScript
declare function call<Fn extends (...args: any[]) => any>(
|
|
fn: Fn,
|
|
...args: Parameters<Fn>
|
|
): any;
|
|
|
|
call(function* (a: 'a') { }); // error, 2nd argument required
|