Skip to content

docs(http-server-js): Add JSDoc for server emitter APIs [skip chg] - #12250

Merged
Timothee Guerin (timotheeguerin) merged 1 commit into
microsoft:mainfrom
timotheeguerin:docs/jsdoc-server-js
Oct 16, 2026
Merged

Timothee Guerin (timotheeguerin) merged 1 commit into
microsoft:mainfrom
timotheeguerin:docs/jsdoc-server-js

Conversation

@timotheeguerin

Copy link
Copy Markdown
Member

JavaScript server emitter consumers lack API guidance on how $onEmit, $lib, and emitter options fit together. Document their roles, option defaults, generated-output ownership, dry-run behavior, and service/error limitations without changing emission behavior.

Preserves the existing deprecated testing-library guidance and leaves generated helpers untouched.

Tracked in #12228.

@pkg-pr-new

pkg-pr-new Bot commented Oct 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-server-js@12250

commit: 4830b9d

@azure-sdk-automation

azure-sdk-automation Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

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

The documentation matches existing behavior, with no unresolved findings or functional changes.

0 open findings

What changed in this PR

Adds public API JSDoc for the JavaScript server emitter as part of #12228, without changing runtime behavior or API signatures.

Changes:

  • Documents emitter options and defaults.
  • Explains $lib registration and $onEmit output ownership, dry-run behavior, and limitations.
File Description
packages/​http-server-js/​src/​lib.ts Documents emitter options, defaults, and library registration.
packages/​http-server-js/​src/​index.ts Documents emission behavior, output ownership, and failure conditions.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@timotheeguerin
Timothee Guerin (timotheeguerin) merged commit 1ba6b9f into microsoft:main Oct 16, 2026
34 checks passed
@timotheeguerin
Timothee Guerin (timotheeguerin) deleted the docs/jsdoc-server-js branch October 16, 2026 16:19
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.

2 participants