Microsoft/TypeScript

'Omit' should alias a distinct mapped type (for display purposes)

Open

#31,104 创建于 2019年4月24日

在 GitHub 查看
 (8 评论) (5 反应) (1 负责人)TypeScript (6,726 fork)batch import
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.

贡献者指南