MCPcopy Index your code
hub / github.com/gitify-app/gitify / handleMainEvent

Function handleMainEvent

src/main/events.ts:27–35  ·  view source on GitHub ↗
(
  event: EventType,
  listener: (
    event: Electron.IpcMainInvokeEvent,
    data: T,
  ) => unknown | Promise<unknown>,
)

Source from the content-addressed store, hash-verified

25 * @param listener - Callback whose return value is sent back to the renderer.
26 */
27export function handleMainEvent<T = EventData>(
28 event: EventType,
29 listener: (
30 event: Electron.IpcMainInvokeEvent,
31 data: T,
32 ) => unknown | Promise<unknown>,
33) {
34 ipcMain.handle(event, listener as Parameters<typeof ipcMain.handle>[1]);
35}
36
37/**
38 * Push an event from the main process to the renderer via webContents.

Callers 4

events.test.tsFile · 0.90
registerStorageHandlersFunction · 0.90
registerSystemHandlersFunction · 0.90
registerAppHandlersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected