Skip to content

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

Open
Oleksandr Tarasiuk (a-tarasyuk) wants to merge 1 commit 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 1 commit 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
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: Not started

Development

Successfully merging this pull request may close these issues.

ImportType attributes can include JS expressions

2 participants