Microsoft/TypeScript

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

開放

#31,104 建立於 2019年4月24日

 (8 則留言) (5 個反應) (1 位負責人)TypeScript (13,395 個分叉)batch import
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.

貢獻者指南