-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationHelp WantedYou can do thisYou can do this
Milestone
Description
Bug Report
TS incorrectly errors when a JSDoc @see
tag starts with an inline @linkcode
tag.
🔎 Search Terms
jsdoc
@see
@linkcode
🕗 Version & Regression Information
Tested with typescript
v4.5.4 and v4.6.0-dev.20211228 and the bug is present in both versions.
⏯ Playground Link
Playground link with relevant code
💻 Code
// @ts-check
/**
* @typedef {any} A
*/
/**
* @see {@link A}
* @see {@linkcode A}
*/
let b;
🙁 Actual behavior
There is a TS error:
Identifier expected.ts(1003)
🙂 Expected behavior
No TS error, and the @linkcode
should render correctly within intellisense as an inline code link.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationHelp WantedYou can do thisYou can do this