TypeScript generates invalid types if @import
tags are spread over multiple lines
#59011
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Domain: JavaScript
The issue relates to JavaScript specifically
Domain: JSDoc
Relates to JSDoc parsing and type generation
Fix Available
A PR has been opened for this issue
Milestone
🔎 Search Terms
“import”
🕗 Version & Regression Information
⏯ Playground Link
https://github.com/remcohaszing/typescript-jsdoc-import-bug
💻 Code
🙁 Actual behavior
TypeScript emits the following type invalid definition:
🙂 Expected behavior
TypeScript emits the following valid type definition:
Additional information about the issue
This bug does not appear in the playground, only when running
tsc
locally.The text was updated successfully, but these errors were encountered: