4 lines
111 B
TypeScript
4 lines
111 B
TypeScript
|
interface Generator<T> { (): T; }
|
||
|
function Generate<U>(func: Generator<U>): U {
|
||
|
return Generate(func);
|
||
|
}
|