Microsoft/TypeScript

No completions for type parameters in generic function return type

Open

#59 419 ouverte le 25 juil. 2024

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)TypeScript (6 726 forks)batch import
Help WantedSuggestion

Métriques du dépôt

Stars
 (48 455 stars)
Métriques de merge PR
 (Merge moyen 6j 17h) (9 PRs mergées en 30 j)

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.

Guide contributeur