Skip to content

Conversation

@jakebailey
Copy link
Member

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

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

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.

3 participants