microsoft / microsoft/TypeScript
Suggest interpolated `number`, `string` and `bigint` types in TypeScript template literals
オープン
まだ誰も着手していません。
Awaiting More Feedback
Suggestion
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
Currently, if you create a variable of an interpolated string type using either number, string or bigint inside you'll get no suggestion for it:
I think it would be more helpful to provide suggestions for those types of strings, having no apparent reason not to. Especially considering the type annotation could be a generic type, in which case you'd have to hover over the variable in order to be aware of the possible values.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue #57545 で説明されている補間文字列型の例を再現し、number、string、bigint、またはジェネリック型を含むテンプレートリテラルに対して TypeScript がどのように候補を生成するかを調査します。ユーザーが変数にカーソルを合わせなくても、これらの補間型に有用な候補が表示されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- compilers
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100