Microsoft/TypeScript

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

Open

#31.104 aberto em 24 de abr. de 2019

Ver no GitHub
 (8 comments) (5 reactions) (1 assignee)TypeScript (6.726 forks)batch import
Effort: ModerateExperience EnhancementFix AvailableHelp WantedSuggestion

Métricas do repositório

Stars
 (48.455 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

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