Skip to content

JSDoc tags not parsed when a type may be presentΒ #62244

@Gerrit0

Description

@Gerrit0

πŸ”Ž Search Terms

jsdoc links missing in possible type position

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about JSDoc

⏯ Playground Link

https://www.typescriptlang.org/play/?#code/MYGwhgzhAEDC0G8BQBfJB6AVJp1PQAEAXACwCcB7AdxgQJAEsA7AazjT3SQDMBXJ4EQYUm0LJnSxYACgCUiVEA

πŸ’» Code

class C {
}
/**
 * @throws {@link C}
 */
function /**/CC() {
}

πŸ™ Actual behavior

TypeScript does not resolve {@link C}.

Hover on the playground shows:

@throws β€” {
@link β€” C}

πŸ™‚ Expected behavior

TypeScript should resolve {@link C}

Hover on the playground should show this (or even better rendered links like it does in vscode)

@throws β€” {@link C }

Additional information about the issue

Originally reported in TypeStrong/typedoc#2993

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions