-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Parse reserved identifiers as dotted names of ambient modules #55282
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
Parse reserved identifiers as dotted names of ambient modules #55282
Conversation
…entifiers-in-declared-dotted-names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need this fix? Namespaces are rarely written these days -- they're still automatically generated but I don't think this fix will make a difference there. And there's a well-understood workaround available.
==== ambientModuleDeclarationWithReservedIdentifierInDottedPath.ts (4 errors) ==== | ||
// https://github.com/microsoft/TypeScript/issues/7840 | ||
|
||
declare module chrome.debugger { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we haven't (yet) deprecated the module
keyword, but please use declare namespace
for new tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the syntax is supported - shouldn't I add extra tests with declare namespace
instead of changing this one?
…entifiers-in-declared-dotted-names
fixes #7840