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.

贡献者指南