File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ const state = {
1515
1616async function run ( ) {
1717 await loadAllDefinitions ( {
18- onError : handler => {
18+ onError : ( ) => {
1919 } ,
20- connect : options => Promise . resolve ( [ ] ) ,
21- dispatchEvent : ( event , payload ) => Promise . resolve ( ) ,
20+ connect : ( ) => Promise . resolve ( [ ] ) ,
21+ dispatchEvent : ( ) => Promise . resolve ( ) ,
2222 getProjectActionConfigurations : ( ) => [ ] ,
2323 config : {
2424 authToken : "" ,
@@ -49,6 +49,10 @@ async function run() {
4949 return Promise . resolve ( )
5050 } ,
5151 registerFlowTypes : ( ...flowTypes ) => {
52+ state . flowTypes = [
53+ ...state . flowTypes ,
54+ ...flowTypes
55+ ]
5256 return Promise . resolve ( )
5357 }
5458
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ async function main() {
1818 console . error ( error )
1919 }
2020}
21+
2122main ( ) . catch ( err => {
2223 console . error ( err )
2324 process . exit ( 1 )
You can’t perform that action at this time.
0 commit comments