Microsoft/TypeScript

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

Open

#31.104 geöffnet am 24. Apr. 2019

Auf GitHub ansehen
 (8 Kommentare) (5 Reaktionen) (1 zugewiesene Person)TypeScript (6.726 Forks)batch import
Effort: ModerateExperience EnhancementFix AvailableHelp WantedSuggestion

Repository-Metriken

Stars
 (48.455 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (9 gemergte PRs in 30 T)

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