Open
Description
π Search Terms
JSDoc, TSDoc, Link, Resolve, Name
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries
β― Playground Link
π» Code
class Test {
/**
* Hello
*/
name:string = "Test"
}
/**
* {@link Test.name}
*/
function a(t:Test) {
return t.name;
}
π Actual behavior
The Test.name
reference in the JSDoc/TSDoc resolves to the symbol Function.name
. This is not correct because the Test
class has an own property declaration for name
.
In my real world usecase am generating markdowns from my typescript code via TypeScript compiler API and I get the wrong symbol using typeChecker.getSymbolAtLocation(tsDocLinkNode.name)
leading to wrong documentation links.
π Expected behavior
The correct documentation of my name
property should be shown.
The typeChecker should resolve this expression to the correct symbol to allow tooling to resolve these cross references and link to the respective documentation page.
Additional information about the issue
No response