Microsoft/TypeScript

No completions for type parameters in generic function return type

Aperta

#59.419 aperta il 25 lug 2024

 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (13.395 fork)batch import
Help WantedSuggestion

Metriche repository

Star
 (108.860 stelle)
Metriche merge PR
 (Merge medio 6g 17h) (9 PR mergiate in 30 g)

Descrizione

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.

Guida contributor