Skip to content
New issue

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

False "Multiple exports of name" error when two "export * as ..." contain same name. [import/export] #2290

Closed
butterybread opened this issue Nov 4, 2021 · 2 comments

Comments

@butterybread
Copy link

This seems related to #1834.
In that scenario there is no longer a problem. It's fixed.
I am having the same problem but with an extra level of indirection.
TypeScript does not seem to have a problem with the extra added level.
So I guess this plugin should allow it?

Scenario in #1834

./A/A1.ts

export type X = "A1";

./A/A2.ts

export type X = "A2";

./A/index.ts

export * as A1 from "./A1";
export * as A2 from "./A2";

In #1834 this would give an error Multiple exports of name 'X'.

@ljharb
Copy link
Member

ljharb commented Nov 4, 2021

Duplicate of #2289.

@ljharb ljharb closed this as completed Nov 4, 2021
@butterybread
Copy link
Author

Oops, yea sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants