Skip to content

Copy JSDoc from mapped type properties in declaration emit - #64713

Open
Colin McDonnell (colinhacks) wants to merge 1 commit into
microsoft:mainfrom
colinhacks:declaration-emit-mapped-jsdoc
Open

Colin McDonnell (colinhacks) wants to merge 1 commit into
microsoft:mainfrom
colinhacks:declaration-emit-mapped-jsdoc

Conversation

@colinhacks

Copy link
Copy Markdown

Fixes #62309

Properties of a mapped type get declarations from the source property but no valueDeclaration, so the node builder copied no comment for them and their JSDoc was dropped from .d.ts output. This falls back to the first declaration, which addPropertyToElementList already does for enclosingDeclaration.

Written with Claude Code.

Copilot AI balanced review requested due to automatic review settings October 10, 2026 00:18
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Oct 10, 2026
@typescript-automation typescript-automation Bot added the For Backlog Bug PRs that fix a backlog bug label Oct 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

JSDoc present in mapped types is not output in generated type literals in declaration files

2 participants