tests/cases/compiler/typeofAmbientExternalModules_2.ts(7,1): error TS2322: Type 'typeof D' is not assignable to type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"'.
Property 'C' is missing in type 'typeof D'.
tests/cases/compiler/typeofAmbientExternalModules_2.ts(9,1): error TS2322: Type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"' is not assignable to type 'typeof D'.
Property 'prototype' is missing in type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"'.
==== tests/cases/compiler/typeofAmbientExternalModules_2.ts (2 errors) ====
///
///
import ext = require('./typeofAmbientExternalModules_0');
import exp = require('./typeofAmbientExternalModules_1');
var y1: typeof ext = ext;
y1 = exp;
~~
!!! error TS2322: Type 'typeof D' is not assignable to type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"'.
!!! error TS2322: Property 'C' is missing in type 'typeof D'.
var y2: typeof exp = exp;
y2 = ext;
~~
!!! error TS2322: Type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"' is not assignable to type 'typeof D'.
!!! error TS2322: Property 'prototype' is missing in type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"'.
==== tests/cases/compiler/typeofAmbientExternalModules_0.ts (0 errors) ====
export class C { foo: string; }
==== tests/cases/compiler/typeofAmbientExternalModules_1.ts (0 errors) ====
class D { bar: string; }
export = D;