Microsoft/TypeScript
'Omit' should alias a distinct mapped type (for display purposes)
Aperta
#31.104 aperta il 24 apr 2019
Effort: ModerateExperience EnhancementHelp WantedSuggestion
Metriche repository
- Star
- (108.860 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
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.