Microsoft/TypeScript

No completions for type parameters in generic function return type

オープン

#59,419 opened on 2024/07/25

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (13,395 件のフォーク)batch import
Help WantedSuggestion

Repository metrics

Stars
 (108,860 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 9 merged PRs)

説明

I feel like we must have an issue for this one, but I can't find it.

function invertKeysAndValues<K, V>(map: Map<K, V>): Map</**/

Request completions at /**/

Expected: The type parameter V is provided as a valid completion entry. Actual: VBArray is the first provided completion entry. This means that a commit character like , after typing in V will commit VBArray as a type argument.

コントリビューターガイド