Skip to content

Commit 0863bba

Browse files
authored
Re-add default parameter of string for WithStyles (#11808)
1 parent 0b24ff1 commit 0863bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/material-ui/src/styles/withStyles.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface WithStylesOptions<ClassKey extends string = string>
3838

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

41-
export type WithStyles<T extends string | StyleRules | StyleRulesCallback> = Partial<WithTheme> & {
41+
export type WithStyles<T extends string | StyleRules | StyleRulesCallback = string> = Partial<WithTheme> & {
4242
classes: ClassNameMap<
4343
T extends string
4444
? T

0 commit comments

Comments
 (0)