Microsoft/TypeScript
View on GitHub'Omit' should alias a distinct mapped type (for display purposes)
Open
#31,104 opened on Apr 24, 2019
Effort: ModerateExperience EnhancementFix AvailableHelp WantedSuggestion
Repository metrics
- Stars
- (48,455 stars)
- PR merge metrics
- (Avg merge 6d 17h) (9 merged PRs in 30d)
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.