34 lines
680 B
TypeScript
34 lines
680 B
TypeScript
//// [internalAliasUninitializedModuleInsideLocalModuleWithExport.ts]
|
|
export module a {
|
|
export module b {
|
|
export interface I {
|
|
foo();
|
|
}
|
|
}
|
|
}
|
|
|
|
export module c {
|
|
export import b = a.b;
|
|
export var x: b.I;
|
|
x.foo();
|
|
}
|
|
|
|
//// [internalAliasUninitializedModuleInsideLocalModuleWithExport.js]
|
|
var c;
|
|
(function (c) {
|
|
c.x.foo();
|
|
})(c = exports.c || (exports.c = {}));
|
|
|
|
|
|
//// [internalAliasUninitializedModuleInsideLocalModuleWithExport.d.ts]
|
|
export declare module a {
|
|
module b {
|
|
interface I {
|
|
foo(): any;
|
|
}
|
|
}
|
|
}
|
|
export declare module c {
|
|
export import b = a.b;
|
|
var x: b.I;
|
|
}
|