Files
tsgo/testdata/baselines/reference/submodule/compiler/es5ExportDefaultFunctionDeclaration3(target=es2015).js

25 lines
596 B
TypeScript

//// [tests/cases/compiler/es5ExportDefaultFunctionDeclaration3.ts] ////
//// [es5ExportDefaultFunctionDeclaration3.ts]
var before: typeof func = func();
export default function func(): typeof func {
return func;
}
var after: typeof func = func();
//// [es5ExportDefaultFunctionDeclaration3.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = func;
var before = func();
function func() {
return func;
}
var after = func();
//// [es5ExportDefaultFunctionDeclaration3.d.ts]
export default function func(): typeof func;