Skip to content

fix(check): ignore doc comment dynamic imports#34888

Merged
littledivy merged 1 commit into
mainfrom
orch/divybot-484
Jun 5, 2026
Merged

fix(check): ignore doc comment dynamic imports#34888
littledivy merged 1 commit into
mainfrom
orch/divybot-484

Conversation

@divybot

@divybot divybot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Fixes a false TS2307 from plain JavaScript doc comments that contain dynamic import examples, such as /** {import('./missing')} */. Deno now suppresses missing-module diagnostics for untagged JSDoc dynamic import expressions while preserving real typed JSDoc imports such as @typedef and @import.

Adds a regression spec for the minimal repro and the @ts-nocheck variant.

Closes #29129
Closes denoland/divybot#484

@littledivy
littledivy merged commit 853402d into main Jun 5, 2026
135 checks passed
@littledivy
littledivy deleted the orch/divybot-484 branch June 5, 2026 07:45
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.

TS2307 cannot find module from a dynamic import inside a doc comment in a js file

2 participants