File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @emotion/cache ' : patch
3
+ ---
4
+
5
+ Improved the declared types related to Stylis. This should improve the compatibility with the types published in ` @types/stylis ` .
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ export { EmotionCache }
7
7
export interface StylisElement {
8
8
type : string
9
9
value : string
10
- props : Array < string >
10
+ props : Array < string > | string
11
11
root : StylisElement | null
12
- children : Array < StylisElement >
12
+ parent : StylisElement | null
13
+ children : Array < StylisElement > | string
13
14
line : number
14
15
column : number
15
16
length : number
@@ -20,14 +21,14 @@ export type StylisPluginCallback = (
20
21
index : number ,
21
22
children : Array < StylisElement > ,
22
23
callback : StylisPluginCallback
23
- ) => string | undefined
24
+ ) => string | void
24
25
25
26
export type StylisPlugin = (
26
27
element : StylisElement ,
27
28
index : number ,
28
29
children : Array < StylisElement > ,
29
30
callback : StylisPluginCallback
30
- ) => string | undefined
31
+ ) => string | void
31
32
32
33
export interface Options {
33
34
nonce ?: string
You can’t perform that action at this time.
0 commit comments