Use 'Omit' instead of 'Pick<Exclude<...>>' for object rest #30948
Labels
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Today, we type
rest
asPick<T, Exclude<keyof T, "a" | "b">>
. We should try to type this asOmit<T, "a" | "b">
ifOmit
is defined.The text was updated successfully, but these errors were encountered: