78 lines
1.6 KiB
TypeScript
78 lines
1.6 KiB
TypeScript
//// [tests/cases/conformance/es6/modules/exportsAndImports3.ts] ////
|
|
|
|
//// [t1.ts]
|
|
|
|
export var v = 1;
|
|
export function f() { }
|
|
export class C {
|
|
}
|
|
export interface I {
|
|
}
|
|
export enum E {
|
|
A, B, C
|
|
}
|
|
export const enum D {
|
|
A, B, C
|
|
}
|
|
export module M {
|
|
export var x;
|
|
}
|
|
export module N {
|
|
export interface I {
|
|
}
|
|
}
|
|
export type T = number;
|
|
export import a = M.x;
|
|
|
|
export { v as v1, f as f1, C as C1, I as I1, E as E1, D as D1, M as M1, N as N1, T as T1, a as a1 };
|
|
|
|
//// [t2.ts]
|
|
export { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1";
|
|
|
|
//// [t3.ts]
|
|
import { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1";
|
|
export { v, f, C, I, E, D, M, N, T, a };
|
|
|
|
|
|
//// [t1.js]
|
|
exports.v = 1;
|
|
exports.v1 = exports.v;
|
|
function f() { }
|
|
exports.f = f;
|
|
exports.f1 = f;
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
return C;
|
|
})();
|
|
exports.C = C;
|
|
exports.C1 = C;
|
|
(function (E) {
|
|
E[E["A"] = 0] = "A";
|
|
E[E["B"] = 1] = "B";
|
|
E[E["C"] = 2] = "C";
|
|
})(exports.E || (exports.E = {}));
|
|
var E = exports.E;
|
|
exports.E1 = E;
|
|
var M;
|
|
(function (M) {
|
|
})(M = exports.M || (exports.M = {}));
|
|
exports.M1 = M;
|
|
exports.a = M.x;
|
|
exports.a1 = exports.a;
|
|
//// [t2.js]
|
|
var t1_1 = require("./t1");
|
|
exports.v = t1_1.v1;
|
|
exports.f = t1_1.f1;
|
|
exports.C = t1_1.C1;
|
|
exports.E = t1_1.E1;
|
|
exports.M = t1_1.M1;
|
|
exports.a = t1_1.a1;
|
|
//// [t3.js]
|
|
var t1_1 = require("./t1");
|
|
exports.v = t1_1.v1;
|
|
exports.f = t1_1.f1;
|
|
exports.C = t1_1.C1;
|
|
exports.E = t1_1.E1;
|
|
exports.M = t1_1.M1;
|
|
exports.a = t1_1.a1;
|