Skip to content

fix-declarations: qualify enum constants in merged namespaces (#61944) #61996

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

Conversation

mehmadullahsheikh
Copy link

Fixes #61944

Ensures that enum constants defined inside a merged namespace are emitted using fully qualified names (Foo.bar) instead of unqualified ones (bar). This prevents scope issues in declaration files.

Added test: enumNamespaceConstant.ts.

@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Jul 4, 2025
@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Jul 4, 2025
@typescript-bot
Copy link
Collaborator

It looks like you've sent a pull request to update some generated declaration files related to the DOM. These files aren't meant to be edited by hand, as they are synchronized with files in the TypeScript-DOM-lib-generator repository. You can read more here. For house-keeping purposes, this pull request will be closed.

@github-project-automation github-project-automation bot moved this from Not started to Done in PR Backlog Jul 4, 2025
@mehmadullahsheikh mehmadullahsheikh deleted the fix/enum-namespace-declaration branch July 4, 2025 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Milestone Bug PRs that fix a bug with a specific milestone
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Incorrect type declarations for a constant inside a namespace merged with an enum
2 participants