TypeScript/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.js
Sheetal Nandi f8351c8865 Set the declarations of export assignment visible on demand through dts emit
Emit those new declarations asynchronously since they are otherwise not visible
2015-02-10 19:02:13 -08:00

39 lines
719 B
JavaScript

//// [declarationEmitImportInExportAssignmentModule.ts]
module m {
export module c {
export class c {
}
}
import x = c;
export var a: typeof x;
}
export = m;
//// [declarationEmitImportInExportAssignmentModule.js]
var m;
(function (m) {
var c;
(function (_c) {
var c = (function () {
function c() {
}
return c;
})();
_c.c = c;
})(c = m.c || (m.c = {}));
m.a;
})(m || (m = {}));
module.exports = m;
//// [declarationEmitImportInExportAssignmentModule.d.ts]
declare module m {
module c {
class c {
}
}
import x = c;
var a: typeof x;
}
export = m;