microsoft / microsoft/TypeScript
@see for property ref in __type__ reference
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.4k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 117
Description
Suggestion
🔍 Search Terms
jsdoc tsdoc @see @link docs types
✅ Viability Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
⭐ Suggestion
📃 Motivating Example
export type A = {
/**
* The import ID from which the re-export was imported from.
*/
foo: string
}
export namespace A {
export type Params = {
/**
* @see {@link A['foo']}
*/
foo: string
}
export const create = (params:Params): A => {
return 'todo' as any
}
}
Here is the above code (approx) in an interactive VSC setting, note the following:
- Want to navigate to type alias but it goes to namespace
- Want to point at a specific property, cannot

I do not have a concrete suggestion yet about how to achieve this.
First want to validate the problem with others.
💻 Use Cases
Want to share the JSDoc between a property on a constructor and a data type.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the motivating example in VS Code and compare how the JSDoc @see/@link reference to A['foo'] resolves against the namespace. Start by validating the reported navigation behavior and determining a concrete syntax or resolution rule; done requires an agreed approach for pointing at the specific property and sharing its documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- compilers, developer-experience
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100