Skip to content

JS Doc @Link support for referring to property of class/interface #43383

@mjbvz

Description

@mjbvz

Bug Report

🔎 Search Terms

  • jsdoc
  • @link
  • @see

🕗 Version & Regression Information

4.3.0-dev.20210325

💻 Code

For the TS:

interface Foo {
    /**
     * {@link Foo#xyz}
     * 
     * {@link Foo.xyz}
     * 
     * {@link Foo~xyz}
     * 
     * {@link xyz}
     */
    abc: number;
    
    /**
     * {@link abc}
     */
    xyz: number;
}

Hover over abc and view the links.

🙁 Actual behavior

None of the links are resolved. I was not able to find a way to have documentation on one property refer to another property

🙂 Expected behavior

If we are following JSDoc, I'd expect that Foo#xyz would be resolved. However we may also want to support: xyz (and maybe Foo.xyz?)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions