( event: EventType, data?: EventData, )
| 36 | * Invoke a main-process handler with structured `EventData` and await the result. |
| 37 | */ |
| 38 | export function invokeMainEventWithData( |
| 39 | event: EventType, |
| 40 | data?: EventData, |
| 41 | ): Promise<unknown> { |
| 42 | return ipcRenderer.invoke(event, data); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Register a listener for an IPC event sent from the main process to the renderer. |
no outgoing calls
no test coverage detected