mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35 lines
541 B
TypeScript
35 lines
541 B
TypeScript
//// [tests/cases/compiler/genericClassesInModule.ts] ////
|
|
|
|
//// [genericClassesInModule.ts]
|
|
namespace Foo {
|
|
|
|
export class B<T>{ }
|
|
|
|
export class A { }
|
|
}
|
|
|
|
var a = new Foo.B<Foo.A>();
|
|
|
|
//// [genericClassesInModule.js]
|
|
"use strict";
|
|
var Foo;
|
|
(function (Foo) {
|
|
class B {
|
|
}
|
|
Foo.B = B;
|
|
class A {
|
|
}
|
|
Foo.A = A;
|
|
})(Foo || (Foo = {}));
|
|
var a = new Foo.B();
|
|
|
|
|
|
//// [genericClassesInModule.d.ts]
|
|
declare namespace Foo {
|
|
class B<T> {
|
|
}
|
|
class A {
|
|
}
|
|
}
|
|
declare var a: Foo.B<Foo.A>;
|