5 lines
101 B
TypeScript
5 lines
101 B
TypeScript
|
function f<T extends ((p1: number) => number)[]>(p: T): T {
|
||
|
return p;
|
||
|
}
|
||
|
|
||
|
var v = f([x => x]);
|