Microsoft/TypeScript
'Omit' should alias a distinct mapped type (for display purposes)
開放
#31,104 建立於 2019年4月24日
Effort: ModerateExperience EnhancementHelp WantedSuggestion
倉庫指標
- 星標
- (108,860 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
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.