Microsoft/TypeScript

No completions for type parameters in generic function return type

開放

#59,419 建立於 2024年7月25日

 (1 則留言) (0 個反應) (0 位負責人)TypeScript (13,395 個分叉)batch import
Help WantedSuggestion

倉庫指標

星標
 (108,860 顆星)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 PR)

描述

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.

貢獻者指南