diff --git a/types/react-jss/lib/injectSheet.d.ts b/types/react-jss/lib/injectSheet.d.ts index eb35117017..68272df3e7 100644 --- a/types/react-jss/lib/injectSheet.d.ts +++ b/types/react-jss/lib/injectSheet.d.ts @@ -62,9 +62,9 @@ export type PropInjector = < // Allow functions that take the properties of the component and return a CSS value export type DynamicCSSRule = { - [K in keyof CSS.Properties]: - | CSS.Properties[K] - | ((props: Props) => CSS.Properties[K]) + [K in keyof CSS.Properties>]: + | CSS.Properties>[K] + | ((props: Props) => CSS.Properties>[K]) }[keyof CSS.Properties]; export interface CSSProperties {