3 lines
109 B
TypeScript
3 lines
109 B
TypeScript
|
// @noImplicitAny: true
|
||
|
declare function asFunction<T>(value: T): () => T;
|
||
|
asFunction(() => { return 1; });
|