Skip to content

Commit

Permalink
Fix keyof for typescript@2.9 (mui#11669)
Browse files Browse the repository at this point in the history
* fix keyof for ts 2.9

* extends keyof any in omit
  • Loading branch information
mctep authored and Joe Shelby committed Jul 14, 2018
1 parent 9283c9d commit 9253c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface Color {
*
* @internal
*/
export type Omit<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;

/**
* `T extends ConsistentWith<T, U>` means that where `T` has overlapping properties with
Expand Down

0 comments on commit 9253c7f

Please sign in to comment.