2273355df4
Note that this doesnt handle aliases yet.
37 lines
821 B
JavaScript
37 lines
821 B
JavaScript
//// [internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts]
|
|
export module a {
|
|
export module b {
|
|
export class c {
|
|
}
|
|
}
|
|
}
|
|
|
|
export import b = a.b;
|
|
export var x: b.c = new b.c();
|
|
|
|
//// [internalAliasInitializedModuleInsideTopLevelModuleWithExport.js]
|
|
(function (a) {
|
|
(function (b) {
|
|
var c = (function () {
|
|
function c() {
|
|
}
|
|
return c;
|
|
})();
|
|
b.c = c;
|
|
})(a.b || (a.b = {}));
|
|
var b = a.b;
|
|
})(exports.a || (exports.a = {}));
|
|
var a = exports.a;
|
|
exports.b = a.b;
|
|
exports.x = new exports.b.c();
|
|
|
|
|
|
//// [internalAliasInitializedModuleInsideTopLevelModuleWithExport.d.ts]
|
|
export declare module a {
|
|
module b {
|
|
class c {
|
|
}
|
|
}
|
|
}
|
|
export import b = a.b;
|
|
export declare var x: a.b.c;
|