Skip to content

Commit

Permalink
fix(util.ts): changes custom type Omit to extend keyof T
Browse files Browse the repository at this point in the history
  • Loading branch information
waynevanson committed Sep 25, 2020
1 parent 333fb6b commit 9db7297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ export function destructurePropsForOptions<T>(
* Construct a type with the properties of T except for those in type K.
* Including this allows for backwards compatibility with earlier versions of TS.
*/
export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;

0 comments on commit 9db7297

Please sign in to comment.