Microsoft/TypeScript
在 GitHub 查看'Omit' should alias a distinct mapped type (for display purposes)
Open
#31,104 建立於 2019年4月24日
Effort: ModerateExperience EnhancementFix AvailableHelp WantedSuggestion
倉庫指標
- Star
- (48,455 star)
- PR 合併指標
- (平均合併 6天 17小時) (30 天內合併 9 個 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.