2014-07-13 01:04:16 +02:00
|
|
|
//// [genericCloduleInModule.ts]
|
|
|
|
module A {
|
|
|
|
export class B<T> {
|
|
|
|
foo() { }
|
|
|
|
static bar() { }
|
|
|
|
}
|
|
|
|
export module B {
|
|
|
|
export var x = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var b: A.B<number>;
|
|
|
|
b.foo();
|
|
|
|
|
|
|
|
//// [genericCloduleInModule.js]
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
|
|
|
var B = (function () {
|
|
|
|
function B() {
|
|
|
|
}
|
|
|
|
B.prototype.foo = function () {
|
|
|
|
};
|
|
|
|
B.bar = function () {
|
|
|
|
};
|
|
|
|
return B;
|
|
|
|
})();
|
|
|
|
A.B = B;
|
2014-09-07 02:40:19 +02:00
|
|
|
var B;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (B) {
|
|
|
|
B.x = 1;
|
2014-09-07 02:40:19 +02:00
|
|
|
})(B = A.B || (A.B = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
})(A || (A = {}));
|
|
|
|
var b;
|
|
|
|
b.foo();
|