TypeScript/tests/baselines/reference/typeofExternalModules.js
2015-12-08 17:51:10 -08:00

42 lines
952 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]
"use strict";
var C = (function () {
function C() {
}
return C;
}());
exports.C = C;
//// [typeofExternalModules_exportAssign.js]
"use strict";
var D = (function () {
function D() {
}
return D;
}());
module.exports = D;
//// [typeofExternalModules_core.js]
"use strict";
var ext = require('./typeofExternalModules_external');
var exp = require('./typeofExternalModules_exportAssign');
var y1 = ext;
y1 = exp;
var y2 = exp;
y2 = ext;