Skip to content

Port TS PR 60566 (@import * as namespace cannot be used with @implements) #1260

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

jakebailey
Copy link
Member

@Copilot Copilot AI review requested due to automatic review settings June 21, 2025 20:32
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR ports changes from TS PR 60566, updating error baseline files and modifying the internal flag check for type-only alias use sites.

  • Update baseline error files for import tag conformance tests
  • Adjust expected error counts in submodule baselines
  • Modify IsValidTypeOnlyAliasUseSite to include NodeFlagsJSDoc in the flag check

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
testdata/baselines/reference/submoduleAccepted/conformance/importTag23.errors.txt.diff Removed outdated baseline error diff content
testdata/baselines/reference/submodule/conformance/importTag23.errors.txt Updated expected error count for /b.js
internal/ast/utilities.go Expanded flag check to include NodeFlagsJSDoc

@jakebailey jakebailey changed the title Port TS PR 60566 Port TS PR 60566 (@import * as namespace cannot be used with @implements) Jun 23, 2025
@@ -3033,7 +3033,7 @@ func IsJSDocSingleCommentNode(node *Node) bool {
}

func IsValidTypeOnlyAliasUseSite(useSite *Node) bool {
return useSite.Flags&NodeFlagsAmbient != 0 ||
return useSite.Flags&(NodeFlagsAmbient|NodeFlagsJSDoc) != 0 ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of funny that you didn't do this in the other PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other PR?

@jakebailey jakebailey added this pull request to the merge queue Jun 24, 2025
Merged via the queue into main with commit f7d28ee Jun 24, 2025
22 checks passed
@jakebailey jakebailey deleted the jabaile/port-60566 branch June 24, 2025 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants