Conflicts: src/compiler/emitter.ts tests/baselines/reference/es6ExportAll.js tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.js
49 lines
833 B
JavaScript
49 lines
833 B
JavaScript
//// [tests/cases/compiler/es6ExportAll.ts] ////
|
|
|
|
//// [server.ts]
|
|
|
|
export class c {
|
|
}
|
|
export interface i {
|
|
}
|
|
export module m {
|
|
export var x = 10;
|
|
}
|
|
export var x = 10;
|
|
export module uninstantiated {
|
|
}
|
|
|
|
//// [client.ts]
|
|
export * from "server";
|
|
|
|
//// [server.js]
|
|
var c = (function () {
|
|
function c() {
|
|
}
|
|
return c;
|
|
})();
|
|
c = c;
|
|
var m;
|
|
(function (m) {
|
|
m.x = 10;
|
|
})(m || (m = {}));
|
|
export { m };
|
|
export var x = 10;
|
|
//// [client.js]
|
|
var _server = require("server");
|
|
for (var _a in _server) if (!exports.hasOwnProperty(_a)) exports[_a] = _server[_a];
|
|
|
|
|
|
//// [server.d.ts]
|
|
export declare class c {
|
|
}
|
|
export interface i {
|
|
}
|
|
export declare module m {
|
|
var x: number;
|
|
}
|
|
export declare var x: number;
|
|
export declare module uninstantiated {
|
|
}
|
|
//// [client.d.ts]
|
|
export * from "server";
|