Microsoft/TypeScript

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

Aberta

#31.104 aberto em 24 de abr. de 2019

 (8 comentários) (5 reações) (1 responsável)TypeScript (13.395 forks)batch import
Effort: ModerateExperience EnhancementHelp WantedSuggestion

Métricas do repositório

Stars
 (108.860 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador