Microsoft/TypeScript

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

Open

#31.104 aperta il 24 apr 2019

Vedi su GitHub
 (8 commenti) (5 reazioni) (1 assegnatario)TypeScript (6726 fork)batch import
Effort: ModerateExperience EnhancementFix AvailableHelp WantedSuggestion

Metriche repository

Star
 (48.455 star)
Metriche merge PR
 (Merge medio 6g 17h) (9 PR mergiate in 30 g)

Descrizione

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.

Guida contributor