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