timocov / dts-bundle-generator

A tool to generate a single bundle of dts with types tree-shaking
MIT License
762 stars 40 forks source link

Not all symbols in a declaration merging are exported #301

Closed timocov closed 9 months ago

timocov commented 9 months ago

Bug report

Input code

// input.ts
import { Foo } from './foo';
const Foo = 2;
export { Foo };

// foo.ts
export interface Foo {}

Expected output

export interface Foo {
}
export declare const Foo = 2;
export {};

Actual output

interface Foo {
}
export declare const Foo = 2;
export {};

Additional context exportReferencedTypes should be disabled