//// [privacyCheckExportAssignmentOnExportedGenericInterface1.ts] module Foo { export interface A { } } interface Foo { } var Foo: new () => Foo.A>; export = Foo; //// [privacyCheckExportAssignmentOnExportedGenericInterface1.js] var Foo; module.exports = Foo; //// [privacyCheckExportAssignmentOnExportedGenericInterface1.d.ts] declare module Foo { interface A { } } interface Foo { } declare var Foo: new () => Foo.A>; export = Foo;