11 lines
280 B
JavaScript
11 lines
280 B
JavaScript
//// [functionExpressionReturningItself.ts]
|
|
var x = function somefn() { return somefn; };
|
|
|
|
//// [functionExpressionReturningItself.js]
|
|
var x = function somefn() {
|
|
return somefn;
|
|
};
|
|
|
|
|
|
//// [functionExpressionReturningItself.d.ts]
|
|
declare var x: () => typeof somefn;
|