(event: Circus.SyncEvent)
| 69 | }; |
| 70 | |
| 71 | export const dispatchSync = (event: Circus.SyncEvent): void => { |
| 72 | for (const handler of handlers) { |
| 73 | handler(event, getState()); |
| 74 | } |
| 75 | }; |
| 76 | |
| 77 | export const addEventHandler = (handler: Circus.EventHandler): void => { |
| 78 | handlers.push(handler); |
no test coverage detected