TypeScript/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.js

33 lines
679 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [internalAliasVarInsideLocalModuleWithoutExport.ts]
export module a {
export var x = 10;
}
export module c {
import b = a.x;
export var bVal = b;
}
//// [internalAliasVarInsideLocalModuleWithoutExport.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) {
var b = a.x;
c.bVal = b;
})(c = exports.c || (exports.c = {}));
2014-07-13 01:04:16 +02:00
});
//// [internalAliasVarInsideLocalModuleWithoutExport.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 {
2014-07-12 01:36:06 +02:00
var bVal: number;
2014-07-13 01:04:16 +02:00
}