==== 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; ~~ !!! Type 'typeof D' is not assignable to type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"': !!! Property 'C' is missing in type 'typeof D'. var y2: typeof exp = exp; y2 = ext; ~~ !!! 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_0.ts (0 errors) ==== export class C { foo: string; } ==== tests/cases/compiler/typeofAmbientExternalModules_1.ts (0 errors) ==== class D { bar: string; } export = D;