Microsoft/TypeScript

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

オープン

#31,104 opened on 2019/04/24

 (8 件のコメント) (5 件のリアクション) (1 人の担当者)TypeScript (13,395 件のフォーク)batch import
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.

コントリビューターガイド