TypeScript/tests/baselines/reference/typeofExternalModules.js
2014-07-12 17:30:19 -07:00

40 lines
899 B
TypeScript

//// [tests/cases/compiler/typeofExternalModules.ts] ////
//// [typeofExternalModules_external.ts]
export class C { }
//// [typeofExternalModules_exportAssign.ts]
class D { }
export = D;
//// [typeofExternalModules_core.ts]
import ext = require('typeofExternalModules_external');
import exp = require('typeofExternalModules_exportAssign');
var y1: typeof ext = ext;
y1 = exp;
var y2: typeof exp = exp;
y2 = ext;
//// [typeofExternalModules_external.js]
var C = (function () {
function C() {
}
return C;
})();
exports.C = C;
//// [typeofExternalModules_exportAssign.js]
var D = (function () {
function D() {
}
return D;
})();
module.exports = D;
//// [typeofExternalModules_core.js]
var ext = require('typeofExternalModules_external');
var exp = require('typeofExternalModules_exportAssign');
var y1 = ext;
y1 = exp;
var y2 = exp;
y2 = ext;