mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
814ca317ae
commit
ab202b8852
6
types/react-jss/lib/injectSheet.d.ts
vendored
6
types/react-jss/lib/injectSheet.d.ts
vendored
@ -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> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user