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