TypeScript/tests/cases/compiler/typeofExternalModules.ts
2014-07-12 17:30:19 -07:00

16 lines
No EOL
412 B
TypeScript

//@module: commonjs
// @Filename: typeofExternalModules_external.ts
export class C { }
// @Filename: typeofExternalModules_exportAssign.ts
class D { }
export = D;
// @Filename: 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;