30 lines
643 B
TypeScript
30 lines
643 B
TypeScript
//// [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.foo();
|
|
});
|
|
|
|
|
|
//// [internalAliasUninitializedModuleInsideTopLevelModuleWithExport.d.ts]
|
|
export declare module a {
|
|
module b {
|
|
interface I {
|
|
foo(): any;
|
|
}
|
|
}
|
|
}
|
|
export import b = a.b;
|
|
export declare var x: b.I;
|