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
This commit is contained in:
Matteo Ferigo 2019-07-22 21:59:00 +02:00 committed by Wesley Wigham
parent 814ca317ae
commit ab202b8852

View File

@ -62,9 +62,9 @@ export type PropInjector<InjectedProps, AdditionalProps = {}> = <
// Allow functions that take the properties of the component and return a CSS value
export type DynamicCSSRule<Props> = {
[K in keyof CSS.Properties<number | string>]:
| CSS.Properties<number | string>[K]
| ((props: Props) => CSS.Properties<number | string>[K])
[K in keyof CSS.Properties<number | string | Array<number | string>>]:
| CSS.Properties<number | string | Array<number | string>>[K]
| ((props: Props) => CSS.Properties<number | string | Array<number | string>>[K])
}[keyof CSS.Properties];
export interface CSSProperties<Props> {