microsoft / microsoft/TypeScript

[API] Expose globals declared by a source file

オープン
#63,871 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@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!

Ref: https://github.com/TypeStrong/typedoc/issues/3098

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。