2273355df4
Note that this doesnt handle aliases yet.
38 lines
601 B
JavaScript
38 lines
601 B
JavaScript
//// [genericClassesInModule.ts]
|
|
|
|
module Foo {
|
|
|
|
export class B<T>{ }
|
|
|
|
export class A { }
|
|
}
|
|
|
|
var a = new Foo.B<Foo.A>();
|
|
|
|
//// [genericClassesInModule.js]
|
|
var Foo;
|
|
(function (Foo) {
|
|
var B = (function () {
|
|
function B() {
|
|
}
|
|
return B;
|
|
})();
|
|
Foo.B = B;
|
|
var A = (function () {
|
|
function A() {
|
|
}
|
|
return A;
|
|
})();
|
|
Foo.A = A;
|
|
})(Foo || (Foo = {}));
|
|
var a = new Foo.B();
|
|
|
|
|
|
//// [genericClassesInModule.d.ts]
|
|
declare module Foo {
|
|
class B<T> {
|
|
}
|
|
class A {
|
|
}
|
|
}
|
|
declare var a: Foo.B<Foo.A>;
|