TypeScript/tests/baselines/reference/functionReturningItself.js

14 lines
248 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [functionReturningItself.ts]
function somefn() {
return somefn;
}
//// [functionReturningItself.js]
function somefn() {
return somefn;
}
//// [functionReturningItself.d.ts]
2014-07-12 01:36:06 +02:00
declare function somefn(): () => typeof somefn;