2014-07-13 01:04:16 +02:00
|
|
|
//// [internalAliasClassInsideTopLevelModuleWithoutExport.ts]
|
|
|
|
export module x {
|
|
|
|
export class c {
|
|
|
|
foo(a: number) {
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
import xc = x.c;
|
|
|
|
export var cProp = new xc();
|
|
|
|
var cReturnVal = cProp.foo(10);
|
|
|
|
|
|
|
|
//// [internalAliasClassInsideTopLevelModuleWithoutExport.js]
|
|
|
|
(function (x) {
|
|
|
|
var c = (function () {
|
|
|
|
function c() {
|
|
|
|
}
|
|
|
|
c.prototype.foo = function (a) {
|
|
|
|
return a;
|
|
|
|
};
|
|
|
|
return c;
|
|
|
|
})();
|
|
|
|
x.c = c;
|
|
|
|
})(exports.x || (exports.x = {}));
|
|
|
|
var x = exports.x;
|
|
|
|
var xc = x.c;
|
|
|
|
exports.cProp = new xc();
|
|
|
|
var cReturnVal = exports.cProp.foo(10);
|
2014-08-06 22:16:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
//// [internalAliasClassInsideTopLevelModuleWithoutExport.d.ts]
|
|
|
|
export declare module x {
|
|
|
|
class c {
|
|
|
|
foo(a: number): number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
import xc = x.c;
|
|
|
|
export declare var cProp: xc;
|