File tree 2 files changed +8
-2
lines changed
packages/frontend/.storybook
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,13 @@ interface SatisfiesExpression extends estree.BaseExpression {
16
16
const generator = {
17
17
...GENERATOR ,
18
18
SatisfiesExpression ( node : SatisfiesExpression , state : State ) {
19
- this [ node . expression . type ] ( node . expression , state ) ;
19
+ if ( node . expression . type === 'ArrowFunctionExpression' ) {
20
+ state . write ( '(' ) ;
21
+ this [ node . expression . type ] ( node . expression , state ) ;
22
+ state . write ( ')' ) ;
23
+ } else {
24
+ this [ node . expression . type ] ( node . expression , state ) ;
25
+ }
20
26
state . write ( ' satisfies ' ) ;
21
27
this [ node . reference . type ] ( node . reference , state ) ;
22
28
} ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ const preview = {
64
64
const story = Story ( ) ;
65
65
if ( ! initialized ) {
66
66
const channel = addons . getChannel ( ) ;
67
- requestIdleCallback ( ( ) => {
67
+ ( globalThis . requestIdleCallback || setTimeout ) ( ( ) => {
68
68
channel . emit ( FORCE_REMOUNT , { storyId : context . id } ) ;
69
69
} ) ;
70
70
}
You can’t perform that action at this time.
0 commit comments