//// [functionReturningItself.ts]
function somefn() {
return somefn;
}
//// [functionReturningItself.js]
//// [functionReturningItself.d.ts]
declare function somefn(): () => typeof somefn;