Skip to content

fix(62179): report non-string-literal values in import type attributes - #64099

Open
Oleksandr Tarasiuk (a-tarasyuk) wants to merge 5 commits into
microsoft:mainfrom
a-tarasyuk:fix/62179
Open

fix(62179): report non-string-literal values in import type attributes#64099
Oleksandr Tarasiuk (a-tarasyuk) wants to merge 5 commits into
microsoft:mainfrom
a-tarasyuk:fix/62179

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes #62179

Copilot AI balanced review requested due to automatic review settings August 30, 2026 17:10
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Aug 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds grammar validation for non-string import type attributes.

Changes:

  • Reuses import-attribute value validation for import types.
  • Adds conformance coverage and diagnostic baselines.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tsc/internal/checker/checker.go Applies shared validation to import types.
tsc/internal/checker/grammarchecks.go Extracts attribute-value validation.
tsc/testdata/tests/cases/conformance/importAttributes/importAttributes12.ts Tests valid and invalid values.
tsc/testdata/baselines/reference/conformance/importAttributes12.errors.txt Records expected diagnostics.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread tsc/internal/checker/grammarchecks.go
@typescript-automation typescript-automation Bot added the For Backlog Bug PRs that fix a backlog bug label Aug 30, 2026
@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Sep 1, 2026
@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Sep 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 1, 2026
@jakebailey

Copy link
Copy Markdown
Member

Seems like this needs a merge from main.

auto-merge was automatically disabled September 1, 2026 19:18

Head branch was pushed to by a user without write access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Status: Needs merge

Development

Successfully merging this pull request may close these issues.

ImportType attributes can include JS expressions

3 participants