Skip to content

Commit dded593

Browse files
fix(react-jss): fix react-jss theme types (#1349)
Co-authored-by: Sergey Gavrilov <[email protected]>
1 parent 1c4feb7 commit dded593

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-jss/src/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ declare const JssContext: Context<{
3737
disableStylesGeneration: boolean
3838
}>
3939

40-
interface WithStylesProps<S extends Styles | ((theme: unknown) => Styles)> {
41-
classes: Classes<S extends ((theme: unknown) => Styles) ? keyof ReturnType<S> : keyof S>
40+
interface WithStylesProps<S extends Styles | ((theme: any) => Styles)> {
41+
classes: Classes<S extends (theme: any) => Styles ? keyof ReturnType<S> : keyof S>
4242
}
4343
/**
4444
* @deprecated Please use `WithStylesProps` instead
4545
*/
46-
type WithStyles<S extends Styles | ((theme: unknown) => Styles)> = WithStylesProps<S>
46+
type WithStyles<S extends Styles | ((theme: any) => Styles)> = WithStylesProps<S>
4747

4848
export interface DefaultTheme {}
4949

0 commit comments

Comments
 (0)