Skip to content

Commit

Permalink
Re-add default parameter of string for WithStyles (#11808)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelotom authored Jun 11, 2018
1 parent 0b24ff1 commit 0863bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/styles/withStyles.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface WithStylesOptions<ClassKey extends string = string>

export type ClassNameMap<ClassKey extends string = string> = Record<ClassKey, string>;

export type WithStyles<T extends string | StyleRules | StyleRulesCallback> = Partial<WithTheme> & {
export type WithStyles<T extends string | StyleRules | StyleRulesCallback = string> = Partial<WithTheme> & {
classes: ClassNameMap<
T extends string
? T
Expand Down

0 comments on commit 0863bba

Please sign in to comment.