Skip to content

fix(4863): fix declaration emit for jsdoc functions - #4873

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
a-tarasyuk:fix/4863
Aug 14, 2026
Merged

fix(4863): fix declaration emit for jsdoc functions#4873
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
a-tarasyuk:fix/4863

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes #4863

Copilot AI balanced review requested due to automatic review settings August 11, 2026 08:36

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.

Pull request overview

Fixes declaration emit for JSDoc @type-annotated function declarations referencing external types.

Changes:

  • Correctly distinguishes full JSDoc signatures from overload implementations.
  • Adds a compiler regression test and declaration/type/symbol baselines.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/checker/emitresolver.go Prevents valid JSDoc functions from being elided.
testdata/tests/cases/compiler/jsDeclarationEmitFunction.ts Adds the regression case.
testdata/baselines/reference/compiler/jsDeclarationEmitFunction.js Verifies declaration output.
testdata/baselines/reference/compiler/jsDeclarationEmitFunction.types Records inferred types.
testdata/baselines/reference/compiler/jsDeclarationEmitFunction.symbols Records symbol bindings.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Aug 14, 2026
Merged via the queue into microsoft:main with commit 2fbf6c3 Aug 14, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TS7 fails to emit types for @type-annotated functions when they reference externally-defined symbols

3 participants