Microsoft/TypeScript
'Omit' should alias a distinct mapped type (for display purposes)
Ouverte
#31 104 ouverte le 24 avr. 2019
Effort: ModerateExperience EnhancementHelp WantedSuggestion
Métriques du dépôt
- Stars
- (108 860 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
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.