Skip to content

Commit

Permalink
Change Omit back to using Pick<T, Exclude<keyof T, K>> in order t…
Browse files Browse the repository at this point in the history
…o maintain modifiers.
  • Loading branch information
DanielRosenwasser committed May 1, 2019
1 parent d22cb0c commit d9e8246
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/es5.d.ts
Expand Up @@ -1446,9 +1446,7 @@ type Extract<T, U> = T extends U ? T : never;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = {
[P in Exclude<keyof T, K>]: T[P]
};
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;

/**
* Exclude null and undefined from T
Expand Down

0 comments on commit d9e8246

Please sign in to comment.