Uh oh!
There was an error while loading. Please reload this page.
Deprecate module keyword for namespace declarations - #58007
Conversation
Jake Bailey (jakebailey)
commented
Apr 2, 2024
TypeScript Bot (@typescript-bot) test it I'm going to make a second PR that uses this to issue a full error so we can gauge how bad things are at the moment (and verify that this is working). |
TypeScript Bot (typescript-bot)
commented
Apr 2, 2024
Jake Bailey (@jakebailey) Here they are:tscComparison Report - baseline..pr
System info unknown Hosts
Scenarios
Developer Information: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TypeScript Bot (typescript-bot)
commented
Apr 2, 2024
Jake Bailey (@jakebailey) Here are the results of running the user tests comparing Everything looks good! |
TypeScript Bot (typescript-bot)
commented
Apr 2, 2024
Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready. Everything looks the same! |
TypeScript Bot (typescript-bot)
commented
Apr 2, 2024
Jake Bailey (@jakebailey) Here are the results of running the top 400 repos comparing Everything looks good! |
Jake Bailey (jakebailey)
commented
Apr 2, 2024
Seems like it works? #58040 (comment) |
Jake Bailey (jakebailey)
left a comment
There was a problem hiding this comment.
This looks good to me, but deferring to Daniel Rosenwasser (@DanielRosenwasser) / Ryan Cavanaugh (@RyanCavanaugh) for final wording.
One thing I'd like to check is whether Can you ensure that it doesn't, and provide a test as well? |
| if (isIdentifier(node.name)) { | ||
| checkCollisionsForDeclarationName(node, node.name); | ||
| if (!(node.flags & (NodeFlags.Namespace | NodeFlags.GlobalAugmentation))) { |
There was a problem hiding this comment.
This will only report errors in editor and there is no way to report these errors on command line. I think we need to handle "deprecation" version here instead to issue error
There was a problem hiding this comment.
The intent is to not report the in tsc yet, per #57913
Zzzen (Zzzen)
commented
May 31, 2024
Tests added. |
TypeScript Bot (@typescript-bot) pack this |
Hey Daniel Rosenwasser (@DanielRosenwasser), I've packed this into an installable tgz. You can install it for testing by referencing it in your and then running There is also a playground for this build and an npm module you can use via |
… for ambient module declaration.
Fixes#57913