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
32 lines
671 B
TypeScript
32 lines
671 B
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBindingDts.ts] ////
|
|
|
|
//// [server.ts]
|
|
|
|
class c { }
|
|
export default c;
|
|
|
|
//// [client.ts]
|
|
import defaultBinding from "server";
|
|
export var x = new defaultBinding();
|
|
import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used
|
|
|
|
|
|
//// [server.js]
|
|
var c = (function () {
|
|
function c() {
|
|
}
|
|
return c;
|
|
})();
|
|
exports.default = c;
|
|
//// [client.js]
|
|
var server_1 = require("server");
|
|
exports.x = new server_1.default();
|
|
|
|
|
|
//// [server.d.ts]
|
|
declare class c {
|
|
}
|
|
export default c;
|
|
//// [client.d.ts]
|
|
import defaultBinding from "server";
|
|
export declare var x: defaultBinding;
|