2014-07-13 01:04:16 +02:00
|
|
|
//// [functionReturningItself.ts]
|
|
|
|
function somefn() {
|
|
|
|
return somefn;
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [functionReturningItself.js]
|
|
|
|
function somefn() {
|
|
|
|
return somefn;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [functionReturningItself.d.ts]
|
2014-08-09 01:15:09 +02:00
|
|
|
declare function somefn(): typeof somefn;
|