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

re-exporting type under the same name in declare global shows error #1173

Open
KraXen72 opened this issue Jan 7, 2024 · 2 comments
Open
Labels
false positive Severe bug: quick-lint-js rejects valid code

Comments

@KraXen72
Copy link

KraXen72 commented Jan 7, 2024

image

i can rename it like i did with the _VtourInfoDB, but it's a hassle

@strager
Copy link
Collaborator

strager commented Jan 10, 2024

I am trying to replicate your issue. The following code causes TypeScript's compiler to complain about the cyclic definition:

export type Banana = {};
declare global {
    type Banana = Banana;
}

TypeScript playground

Can you share a complete example where TypeScript's compiler does not complain (but quick-lint-js does complain)?

@strager strager added the false positive Severe bug: quick-lint-js rejects valid code label Jan 10, 2024
@KraXen72
Copy link
Author

i'll see if i can make a minimal working repro in a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false positive Severe bug: quick-lint-js rejects valid code
Projects
None yet
Development

No branches or pull requests

2 participants