Question: How to make getType() work in TypeScript
- 主要言語
- CodeQL
- スター
- 10.1k
- フォーク
- 2.1k
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 141
説明
Hello, I was hoping to get some help about using `getType()` in Typescript files. The docs say the following:
```
Static type information
Static type information and global name binding is available for projects with “full” TypeScript extraction enabled. This option is enabled by default when you create databases with the CodeQL CLI.
```
I don't seem to be able to get any calls to `.getType()` to work. Am I missing a setup process to enable the "full" TypeScript extraction? How should I set that up?
For more context, the following query does not return anything:
```codeql
from Type t
select t
```
I believe this is the reason why `.getType()` isn't returning anything, since there are no `Type` classes to be found. What is the `Type` class and what makes a TypeScript codebase have one?
Thank you!
コントリビューションガイド
調査の方向性
ドキュメントに記載された「full」TypeScript 抽出オプションと、issue に示されている CodeQL クエリから始めます。どのような設定で Type インスタンスが生成され、getType() が結果を返せるようになるのかを確認し、必要な手順と動作する例を含めてドキュメントを明確にします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100