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