Skip to content

@link tag inside a JSDoc type expression doesn't show parse error in TSΒ #54650

Closed as not planned
@DanielSWolf

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:

image

πŸ™‚ Expected behavior

The @link tags after the @throw tags are resolved correctly.

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationFix AvailableA PR has been opened for this issueIn DiscussionNot yet reached consensusWorking as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions