dts.bundle({
name: "my-lib",
main: "dist/my-lib/index.d.ts",
referenceExternals: false,
out: "./index.d.ts",
baseDir: "./dist/my-lib/"
});
class A{}
import A from "./A";
class B{}
declare module "my-lib" {
export * from "my-lib/A";
export * from "my-lib/B";
}
declare module "my-lib/A" {
class A{}
}
declare module "my-lib/B" {
import A from "my-lib/A";
class B{}
}
declare module MyLib {
class A{}
class B{}
}
declare module "my-lib" {
export = MyLib;
}