We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b24ff1 commit 0863bbaCopy full SHA for 0863bba
packages/material-ui/src/styles/withStyles.d.ts
@@ -38,7 +38,7 @@ export interface WithStylesOptions<ClassKey extends string = string>
38
39
export type ClassNameMap<ClassKey extends string = string> = Record<ClassKey, string>;
40
41
-export type WithStyles<T extends string | StyleRules | StyleRulesCallback> = Partial<WithTheme> & {
+export type WithStyles<T extends string | StyleRules | StyleRulesCallback = string> = Partial<WithTheme> & {
42
classes: ClassNameMap<
43
T extends string
44
? T
0 commit comments