Microsoft/TypeScript

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

Open

#31 104 ouverte le 24 avr. 2019

Voir sur GitHub
 (8 commentaires) (5 réactions) (1 assigné)TypeScript (6 726 forks)batch import
Effort: ModerateExperience EnhancementFix AvailableHelp WantedSuggestion

Métriques du dépôt

Stars
 (48 455 stars)
Métriques de merge PR
 (Merge moyen 6j 17h) (9 PRs mergées en 30 j)

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.

Guide contributeur