14 lines
242 B
JavaScript
14 lines
242 B
JavaScript
//// [functionReturningItself.ts]
|
|
function somefn() {
|
|
return somefn;
|
|
}
|
|
|
|
//// [functionReturningItself.js]
|
|
function somefn() {
|
|
return somefn;
|
|
}
|
|
|
|
|
|
//// [functionReturningItself.d.ts]
|
|
declare function somefn(): typeof somefn;
|