5 lines
105 B
TypeScript
5 lines
105 B
TypeScript
|
function foo<T extends (p: string) => number>(x: T): T {
|
||
|
return undefined;
|
||
|
}
|
||
|
|
||
|
foo(x => x.length);
|