Conflicts: src/compiler/checker.ts src/compiler/emitter.ts src/compiler/types.ts tests/baselines/reference/APISample_compile.js tests/baselines/reference/APISample_linter.js tests/baselines/reference/APISample_transform.js tests/baselines/reference/APISample_watcher.js tests/baselines/reference/es5ExportDefaultClassDeclaration2.js tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js tests/baselines/reference/es6ExportAllInEs5.js tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js
22 lines
420 B
TypeScript
22 lines
420 B
TypeScript
//// [es5ExportDefaultClassDeclaration2.ts]
|
|
|
|
export default class {
|
|
method() { }
|
|
}
|
|
|
|
|
|
//// [es5ExportDefaultClassDeclaration2.js]
|
|
var default_1 = (function () {
|
|
function default_1() {
|
|
}
|
|
default_1.prototype.method = function () {
|
|
};
|
|
return default_1;
|
|
})();
|
|
exports.default = default_1;
|
|
|
|
|
|
//// [es5ExportDefaultClassDeclaration2.d.ts]
|
|
export default class {
|
|
method(): void;
|
|
}
|