@link tag inside a JSDoc type expression doesn't show parse error in TSΒ #54650
Closed as not planned
Description
Bug Report
π Search Terms
tsdoc, @throws
, @link
, tags
π Version & Regression Information
This changed between versions 4.9.5 and 5.0.4
β― Playground Link
Playground link with relevant code
π» Code
class FooError extends Error {}
class BarError extends Error {}
/**
* Performs blubber.
*
* @throws {@link FooError} if foo happens.
* @throws {@link BarError} if bar happens.
*/
function blubber() {}
π Actual behavior
The @link
tags after the @throw
tags are parsed incorrectly, leading to this garbled tooltip:
π Expected behavior
The @link
tags after the @throw
tags are resolved correctly.