Microsoft/TypeScript

'Omit' should alias a distinct mapped type (for display purposes)

Offen

#31.104 geöffnet am 24.04.2019

 (8 Kommentare) (5 Reaktionen) (1 zugewiesene Person)TypeScript (13.395 Forks)batch import
Effort: ModerateExperience EnhancementHelp WantedSuggestion

Repository-Metriken

Stars
 (108.860 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Today, Omit will expand to Pick<Exclude<...>, ...> in quick info, error messages, etc. which is gross.

By defining Omit as its own conditional type, we can get a slightly nicer display, though it will introduce duplication of code between the two helpers.

Contributor Guide