Microsoft/TypeScript
GitHub ã§èŠãMissing `Go to definition` links when accessing properties after `jsdoc` typecast
Open
#60,562 opened on 2024幎11æ22æ¥
Experience EnhancementHelp WantedSuggestion
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
ð Search Terms
jsdoc typecast, typecast property access, jsdoc go to definition
ð Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about jsdoc, typecast
⯠Playground Link
ð» Code
/** @typedef {{ name: string }} Foo */
const obj = /** @type {Foo} */({});
// Hover with `ctrl` over `Foo` below doesn't recognize the type definition
const obj1 = /** @type {Foo} */({}).name;
const obj2 = /** @type {Foo} */({})['name'];
ð Actual behavior
Hovering over Foo with ctrl pressed doesn't recognize the type definition
ð Expected behavior
Hovering over Foo with ctrl pressed recognizes the type definition
Additional information about the issue
No response