Skip to content

docs(emitter-framework): Add JSDoc for public APIs [skip chg] - #12209

Merged
Timothee Guerin (timotheeguerin) merged 15 commits into
microsoft:mainfrom
timotheeguerin:docs/jsdoc-framework-core
Oct 16, 2026
Merged

Timothee Guerin (timotheeguerin) merged 15 commits into
microsoft:mainfrom
timotheeguerin:docs/jsdoc-framework-core

Conversation

@timotheeguerin

@timotheeguerin Timothee Guerin (timotheeguerin) commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Emitter authors need usable contracts across contexts, language components, transformations, and testing helpers, not just component names and TypeScript signatures.

Document the public emitter framework together, including its C#, TypeScript, and Python components. Explain defaults, supported input shapes, transformation scope, and error filtering without changing generated output or APIs.

Consolidates 12213, 12220, 12223, 12226, 12227.

Tracked in #12228.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter-framework Issues for the emitter framework label Oct 15, 2026
@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/emitter-framework@12209

commit: 985a8d4

@github-actions

Copy link
Copy Markdown
Contributor

❌ There is undocummented changes. Run chronus add to add a changeset or click here.

The following packages have changes but are not documented.

  • ❌@typespec/emitter-framework
Show changes

@timotheeguerin Timothee Guerin (timotheeguerin) changed the title Document emitter framework contexts and override contracts docs(emitter-framework): Add JSDoc for contexts and overrides [skip chg] Oct 15, 2026
@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-only changes have no identified correctness issues and preserve runtime behavior and API signatures.

0 open findings

What changed in this PR

Adds JSDoc to emitter-framework APIs as part of #12228, clarifying contracts for emitter authors without changing runtime behavior or API signatures.

Changes:

  • Documents output rendering and persistence.
  • Explains context requirements, lazy typekit initialization, and naming defaults.
  • Clarifies graph views and declaration/reference override precedence.
File Description
packages/​emitter-framework/​src/​core/​write-output.ts Documents rendering and file-writing behavior.
packages/​emitter-framework/​src/​core/​transport-name-policy.ts Distinguishes wire names from application identifiers.
packages/​emitter-framework/​src/​core/​scc-set.ts Describes graph groups and traversal options.
packages/​emitter-framework/​src/​core/​context/​tsp-context.ts Explains provider requirements and lazy typekit initialization.
packages/​emitter-framework/​src/​core/​context/​name-policy-context.ts Documents naming-policy defaults and fallback.
packages/​emitter-framework/​src/​core/​components/​overrides/​config.ts Explains registration precedence and scalar inheritance.
packages/​emitter-framework/​src/​core/​components/​overrides/​component-overrides.tsx Documents override inputs, composition, and provider scope.
packages/​emitter-framework/​src/​core/​components/​output.tsx Describes output context and forwarded options.

🧠 Review effort: Balanced


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

Copilot AI balanced review requested due to automatic review settings October 16, 2026 14:12
@timotheeguerin Timothee Guerin (timotheeguerin) changed the title docs(emitter-framework): Add JSDoc for contexts and overrides [skip chg] docs(emitter-framework): Add JSDoc for public APIs [skip chg] Oct 16, 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.

🟢 Approval recommended

The documentation-only changes preserve runtime behavior and API signatures, with no unresolved blocking issues.

0 open findings

🧠 Review effort: Balanced

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

Labels

emitter-framework Issues for the emitter framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants