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
62 lines
1.3 KiB
TypeScript
62 lines
1.3 KiB
TypeScript
//// [tests/cases/compiler/es6ExportClauseWithoutModuleSpecifierInEs5.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 { c } from "server";
|
|
export { c as c2 } from "server";
|
|
export { i, m as instantiatedModule } from "server";
|
|
export { uninstantiated } from "server";
|
|
export { x } from "server";
|
|
|
|
//// [server.js]
|
|
var c = (function () {
|
|
function c() {
|
|
}
|
|
return c;
|
|
})();
|
|
exports.c = c;
|
|
var m;
|
|
(function (m) {
|
|
m.x = 10;
|
|
})(m = exports.m || (exports.m = {}));
|
|
exports.x = 10;
|
|
//// [client.js]
|
|
var server_1 = require("server");
|
|
exports.c = server_1.c;
|
|
var server_2 = require("server");
|
|
exports.c2 = server_2.c;
|
|
var server_3 = require("server");
|
|
exports.instantiatedModule = server_3.m;
|
|
var server_4 = require("server");
|
|
exports.x = server_4.x;
|
|
|
|
|
|
//// [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 { c } from "server";
|
|
export { c as c2 } from "server";
|
|
export { i, m as instantiatedModule } from "server";
|
|
export { uninstantiated } from "server";
|
|
export { x } from "server";
|