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.