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