TypeScript/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.js
2014-09-06 17:40:19 -07:00

33 lines
679 B
TypeScript

//// [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;
(function (a) {
a.x = 10;
})(a = exports.a || (exports.a = {}));
var c;
(function (c) {
var b = a.x;
c.bVal = b;
})(c = exports.c || (exports.c = {}));
});
//// [internalAliasVarInsideLocalModuleWithoutExport.d.ts]
export declare module a {
var x: number;
}
export declare module c {
var bVal: number;
}