55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts] ////
|
|
|
|
//// [server.ts]
|
|
|
|
export var a = 10;
|
|
export var x = a;
|
|
export var m = a;
|
|
export default {};
|
|
|
|
//// [client.ts]
|
|
export import defaultBinding1, { } from "server";
|
|
export import defaultBinding2, { a } from "server";
|
|
export var x1: number = a;
|
|
export import defaultBinding3, { a as b } from "server";
|
|
export var x1: number = b;
|
|
export import defaultBinding4, { x, a as y } from "server";
|
|
export var x1: number = x;
|
|
export var x1: number = y;
|
|
export import defaultBinding5, { x as z, } from "server";
|
|
export var x1: number = z;
|
|
export import defaultBinding6, { m, } from "server";
|
|
export var x1: number = m;
|
|
|
|
|
|
//// [server.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
exports.a = 10;
|
|
exports.x = exports.a;
|
|
exports.m = exports.a;
|
|
exports.default = {};
|
|
});
|
|
//// [client.js]
|
|
define(["require", "exports", "server", "server", "server", "server", "server"], function (require, exports, server_1, server_2, server_3, server_4, server_5) {
|
|
exports.x1 = server_1.a;
|
|
exports.x1 = server_2.a;
|
|
exports.x1 = server_3.x;
|
|
exports.x1 = server_3.a;
|
|
exports.x1 = server_4.x;
|
|
exports.x1 = server_5.m;
|
|
});
|
|
|
|
|
|
//// [server.d.ts]
|
|
export declare var a: number;
|
|
export declare var x: number;
|
|
export declare var m: number;
|
|
declare var _default: {};
|
|
export default _default;
|
|
//// [client.d.ts]
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|