SomeClass.ts
:
export interface SomeClass {
print(): void;
}
external-types.d.ts
import { SomeClass } from "./SomeClass";
declare module "printer" {
// How to export SomeClass from this module?
// I have several other interfaces spread across
// files that I want to export from here.
}
The solution I am not looking for is, moving the interface into module declaration. Because I have lot of interfaces across files and I simply want to import and re-export them from the module.