Skip to content

[api] export existing JSDoc helpers - #65588

Merged
Andrew Branch (andrewbranch) merged 3 commits into
microsoft:mainfrom
andrewbranch:jsdoc-helper-exports
Nov 20, 2026
Merged

Andrew Branch (andrewbranch) merged 3 commits into
microsoft:mainfrom
andrewbranch:jsdoc-helper-exports

Conversation

@andrewbranch

@andrewbranch Andrew Branch (andrewbranch) commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Found by #64749

  • getJSDocParameterTags
  • getJSDocTypeParameterTags
  • isJSDocLinkLike

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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.

🟢 Approval recommended

No active review issues block approval of the JSDoc helper exports.

No open issues 🎉

What changed in this PR

Exposes three JSDoc helpers through the TypeScript AST API, allowing consumers to retrieve parameter documentation and narrow JSDoc link nodes.

Changes:

  • Exports getJSDocParameterTags and getJSDocTypeParameterTags with readonly return types.
  • Exports isJSDocLinkLike as a type guard covering all three JSDoc link kinds.
  • Adds tests for link narrowing, name-based tag matching, and positional matching for binding patterns.
File Description
packages/​typescript/​test/​sync/​ast.test.ts Tests the exported JSDoc helpers and matching behavior.
packages/​typescript/​src/​ast/​jsdoc.ts Exports and documents parameter and type-parameter tag helpers.
packages/​typescript/​src/​ast/​is.ts Exports the JSDoc link helper with a narrowing return type.

Review effort: Balanced

@andrewbranch Andrew Branch (andrewbranch) changed the title [api] JSDoc helper exports [api] export existing JSDoc helpers Nov 19, 2026
@andrewbranch
Andrew Branch (andrewbranch) marked this pull request as ready for review November 19, 2026 19:56
@andrewbranch
Andrew Branch (andrewbranch) added this pull request to the merge queue Nov 20, 2026
Merged via the queue into microsoft:main with commit c8a00cb Nov 20, 2026
34 checks passed
@andrewbranch
Andrew Branch (andrewbranch) deleted the jsdoc-helper-exports branch November 20, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants