API docs parity: Node.js / TypeScript
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- node.js, typescript
调研方向
首先阅读父级 epic #1653,以及 issue 中关于 TSDoc、TypeDoc、tsdocs.dev、GitHub Pages 和已发布 .d.ts 文件的讨论。该 issue 没有列出任何 repository 文件、测试或实现入口;只有在明确决定项目的 API 文档方案和交付物后,工作才算完成。
由索引模型根据 Issue 内容生成。
描述
Node.js / TypeScript API Docs
Parent epic: #1653
Doc format: TSDoc / TypeDoc comments (/** ... */ with @param, @returns, etc.). TypeDoc generates HTML from these.
Culture: Weaker than Java. npm does not require a docs artifact to publish. Many packages ship only a README + inline types (the .d.ts files are the docs for many TS consumers via IDE hover). Publishing standalone API docs is opt-in.
Hosting analogues:
| Service | How it works |
|---|---|
| typedoc.org | Generator, not host |
| tsdocs.dev | Closest to javadoc.io — auto-generates docs from any npm package's types on demand |
| GitHub Pages / custom | Many projects self-host (e.g. docs/ folder or CI-published site) |
Key difference from Java: No registry-mandated doc artifact. tsdocs.dev synthesizes docs from published .d.ts type declarations rather than a pre-built doc jar.
Additional research: tsdocs.dev fragility
As of 2026-06-13, tsdocs.dev returns 502 Bad Gateway across the board — both the homepage and package-specific URLs (e.g. https://tsdocs.dev/docs/@github/copilot-sdk). The service is completely down, not just a homepage glitch.
This reinforces the fragility of the TypeScript ecosystem's doc hosting: tsdocs.dev is a volunteer-run third-party project, not backed by npm or Microsoft. It has had reliability issues before. There is no npm Inc. or TypeScript team commitment keeping it running — unlike docs.rs (Rust team) or pkg.go.dev (Go team), which are first-party infrastructure with SLAs.
In practice, for the @github/copilot-sdk npm package, the realistic API-docs options are:
- Self-host TypeDoc output (e.g., GitHub Pages from CI) — most reliable
- Rely on
.d.tshover docs in IDEs — what most TS consumers actually use day-to-day - tsdocs.dev — when it's up, which apparently is not guaranteed
As a Java Champion perspective: Java's Maven Central mandate for javadoc jars means API docs are a first-class, always-available artifact. This is particularly important in an era where AI is writing code — maintainability depends on discoverable, reliably-hosted documentation. The TypeScript ecosystem lacks this guarantee, making self-hosted docs a necessity rather than optional.
- 主要语言
- Java
- 星标
- 10.5k
- 派生
- 1.5k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 130
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/copilot-sdk 的其他 Issue
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2760 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2759 ·
-
documentation
难度 1/5 1 小时以内 新手友好度 85/100
github/copilot-sdk#2758 ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
github/copilot-sdk#2709 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 78/100
github/copilot-sdk#2673 ·
查看 github/copilot-sdk 的全部 Issue
相似的 Issue
-
area/plugin
难度 2/5 1-3 小时 新手友好度 75/100
kestra-io/plugin-kestra#190 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
apache/rocketmq-dashboard#5064 ·