Conflicts: tests/baselines/reference/es5ExportDefaultFunctionDeclaration.js tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js
21 lines
375 B
TypeScript
21 lines
375 B
TypeScript
//// [es5ExportDefaultClassDeclaration.ts]
|
|
|
|
export default class C {
|
|
method() { }
|
|
}
|
|
|
|
|
|
//// [es5ExportDefaultClassDeclaration.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.prototype.method = function () { };
|
|
return C;
|
|
})();
|
|
exports.default = C;
|
|
|
|
|
|
//// [es5ExportDefaultClassDeclaration.d.ts]
|
|
export default class C {
|
|
method(): void;
|
|
}
|