TypeScript/tests/baselines/reference/internalAliasVarInsideLocalModuleWithExport.js

34 lines
705 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [internalAliasVarInsideLocalModuleWithExport.ts]
export module a {
export var x = 10;
}
export module c {
export import b = a.x;
export var bVal = b;
}
//// [internalAliasVarInsideLocalModuleWithExport.js]
define(["require", "exports"], function (require, exports) {
var a;
2014-07-13 01:04:16 +02:00
(function (a) {
a.x = 10;
})(a = exports.a || (exports.a = {}));
var c;
2014-07-13 01:04:16 +02:00
(function (c) {
c.b = a.x;
c.bVal = c.b;
})(c = exports.c || (exports.c = {}));
2014-07-13 01:04:16 +02:00
});
//// [internalAliasVarInsideLocalModuleWithExport.d.ts]
export declare module a {
2014-07-12 01:36:06 +02:00
var x: number;
2014-07-13 01:04:16 +02:00
}
export declare module c {
export import b = a.x;
2014-07-12 01:36:06 +02:00
var bVal: number;
2014-07-13 01:04:16 +02:00
}