2014-07-13 01:04:16 +02:00
|
|
|
//// [internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts]
|
|
|
|
export module a {
|
|
|
|
export module b {
|
|
|
|
export interface I {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export import b = a.b;
|
|
|
|
export var x: b.I;
|
|
|
|
x.foo();
|
|
|
|
|
|
|
|
|
|
|
|
//// [internalAliasUninitializedModuleInsideTopLevelModuleWithExport.js]
|
|
|
|
define(["require", "exports"], function (require, exports) {
|
|
|
|
exports.x;
|
|
|
|
exports.x.foo();
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//// [internalAliasUninitializedModuleInsideTopLevelModuleWithExport.d.ts]
|
|
|
|
export declare module a {
|
|
|
|
module b {
|
|
|
|
interface I {
|
2014-07-12 01:36:06 +02:00
|
|
|
foo(): any;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export import b = a.b;
|
2014-07-15 21:53:37 +02:00
|
|
|
export declare var x: b.I;
|