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
34 lines
814 B
TypeScript
34 lines
814 B
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts] ////
|
|
|
|
//// [server.ts]
|
|
|
|
class a { }
|
|
export default a;
|
|
|
|
//// [client.ts]
|
|
import defaultBinding, * as nameSpaceBinding from "server";
|
|
export var x = new defaultBinding();
|
|
|
|
//// [server.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
var a = (function () {
|
|
function a() {
|
|
}
|
|
return a;
|
|
})();
|
|
exports.default = a;
|
|
});
|
|
//// [client.js]
|
|
define(["require", "exports", "server"], function (require, exports, server_1) {
|
|
var nameSpaceBinding = server_1;
|
|
exports.x = new server_1.default();
|
|
});
|
|
|
|
|
|
//// [server.d.ts]
|
|
declare class a {
|
|
}
|
|
export default a;
|
|
//// [client.d.ts]
|
|
import defaultBinding from "server";
|
|
export declare var x: defaultBinding;
|