File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,31 @@ interface IBaseCssValue<T> {
5
5
base ?: T ;
6
6
}
7
7
8
- export type StyleProps < T > = T extends ( props : infer R ) => any
8
+ export type InferPropsFromFunctionArgument < T > = T extends (
9
+ props : infer R ,
10
+ ) => any
9
11
? R extends { theme ?: any } ? Pick < R , Exclude < keyof R , 'theme' > > : R
10
- : never ;
12
+ : { } ;
13
+
14
+ export type StyleProps <
15
+ T1 ,
16
+ T2 = { } ,
17
+ T3 = { } ,
18
+ T4 = { } ,
19
+ T5 = { } ,
20
+ T6 = { } ,
21
+ T7 = { } ,
22
+ T8 = { } ,
23
+ T9 = { }
24
+ > = InferPropsFromFunctionArgument < T1 > &
25
+ InferPropsFromFunctionArgument < T2 > &
26
+ InferPropsFromFunctionArgument < T3 > &
27
+ InferPropsFromFunctionArgument < T4 > &
28
+ InferPropsFromFunctionArgument < T5 > &
29
+ InferPropsFromFunctionArgument < T6 > &
30
+ InferPropsFromFunctionArgument < T7 > &
31
+ InferPropsFromFunctionArgument < T8 > &
32
+ InferPropsFromFunctionArgument < T9 > ;
11
33
12
34
export type ResponsivePropValue < BreakPoints , ValueType > = {
13
35
[ P in Extract < keyof BreakPoints , string > ] ?: ValueType
You can’t perform that action at this time.
0 commit comments