Microsoft/TypeScript
'Omit' should alias a distinct mapped type (for display purposes)
オープン
#31,104 opened on 2019/04/24
Effort: ModerateExperience EnhancementHelp WantedSuggestion
Repository metrics
- Stars
- (108,860 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
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.