File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,14 @@ import * as css from 'csstype'
44type FnValue < R > = R | ( ( data : any ) => R )
55
66type NormalCssProperties = css . Properties < string | number >
7- type CssProperties = { [ K in keyof NormalCssProperties ] : FnValue < NormalCssProperties [ K ] > }
7+ type CssProperties = { [ K in keyof NormalCssProperties ] : FnValue < NormalCssProperties [ K ] | JssValue > }
88
99// Jss Style definitions
10- type JssStyleP < S > = CssProperties & {
11- [ key : string ] : FnValue < JssValue | S >
10+ type JssStyleP = {
11+ [ key : string ] : FnValue < JssValue | JssStyleP >
1212}
1313
14- export type JssStyle = JssStyleP <
15- JssStyleP < JssStyleP < JssStyleP < JssStyleP < JssStyleP < JssStyleP < void > > > > > >
16- >
14+ export type JssStyle = CssProperties & JssStyleP ;
1715
1816export type Styles < Name extends string | number | symbol = string > = Record < Name , JssStyle | string >
1917export type Classes < Name extends string | number | symbol = string > = Record < Name , string >
You can’t perform that action at this time.
0 commit comments