microsoft / microsoft/TypeScript
[API] Expose globals declared by a source file
オープン
@andrewbranch がすでに取り組んでいます。
2026年8月3日 から。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 132
説明
With TypeScript 6.x, TypeDoc supports documenting global files by documenting the globals defined in that file.
This was done somewhat hackily with:
result = checker.getSymbolsInScope(node, ts.SymbolFlags.ModuleMember)
.filter((s) =>
s
.getDeclarations()
?.some((d) => d.getSourceFile() === sourceFile)
);
@jakebailey told me on Discord that there is SourceFile.Locals, which would be a better way to get this information, but this isn't exposed in the JS API, so I'd like to request that!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。