From ab202b8852ea6fe71178cd0fe8b54b41e85284cb Mon Sep 17 00:00:00 2001 From: Matteo Ferigo Date: Mon, 22 Jul 2019 21:59:00 +0200 Subject: [PATCH] Allow space-separated values (#36929) Space-separated values are allowed in JSS https://cssinjs.org/jss-syntax?v=v10.0.0-alpha.22#space-separated-values --- types/react-jss/lib/injectSheet.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {