We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A code like this:
import { Foo as Foo1 } from "./foo" export namespace bar { export type Foo = Foo1 }
generates invalid d.ts:
type Foo = string; declare namespace bar { type Foo = Foo; // Type alias 'Foo' circularly references itself. ts(2456) } export { bar };
Reproduction: https://stackblitz.com/edit/node-497knk
Run tsup bar.ts --dts and examine dist/bar.d.ts.
tsup bar.ts --dts
dist/bar.d.ts
The text was updated successfully, but these errors were encountered:
It looks like a rollup-plugin-dts issue: Swatinem/rollup-plugin-dts#223
rollup-plugin-dts
Sorry, something went wrong.
No branches or pull requests
A code like this:
generates invalid d.ts:
Reproduction: https://stackblitz.com/edit/node-497knk
Run
tsup bar.ts --dts
and examinedist/bar.d.ts
.Upvote & Fund
The text was updated successfully, but these errors were encountered: