Index: diff.patch =================================================================== --- diff.patch +++ diff.patch @@ -1,14 +1,10 @@ // index.d.ts +declare namespace bar_d_exports { + export { Bar, IBar } +} declare class Bar {} interface IBar {} -type __bar_Bar = Bar -declare const __bar_Bar: typeof Bar -type __bar_IBar = IBar -declare namespace __bar { - export { __bar_Bar as Bar } - export { __bar_IBar as IBar } -} interface Foo { - ns: typeof __bar + ns: typeof bar_d_exports } export { Foo }