Microsoft/TypeScript

No completions for type parameters in generic function return type

Aberta

#59.419 aberto em 25 de jul. de 2024

 (1 comentário) (0 reação) (0 responsável)TypeScript (13.395 forks)batch import
Help WantedSuggestion

Métricas do repositório

Stars
 (108.860 estrelas)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

Description

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.

Guia do colaborador