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