29 lines
579 B
JavaScript
29 lines
579 B
JavaScript
//// [internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts]
|
|
export module a {
|
|
export module b {
|
|
export interface I {
|
|
foo();
|
|
}
|
|
}
|
|
}
|
|
|
|
import b = a.b;
|
|
export var x: b.I;
|
|
x.foo();
|
|
|
|
|
|
//// [internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.js]
|
|
exports.x;
|
|
exports.x.foo();
|
|
|
|
|
|
//// [internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.d.ts]
|
|
export declare module a {
|
|
module b {
|
|
interface I {
|
|
foo(): any;
|
|
}
|
|
}
|
|
}
|
|
import b = a.b;
|
|
export declare var x: b.I;
|