MCPcopy Create free account
hub / github.com/gitify-app/gitify / onMainEvent

Function onMainEvent

src/main/events.ts:13–18  ·  view source on GitHub ↗
(
  event: EventType,
  listener: (event: Electron.IpcMainEvent, args: T) => void,
)

Source from the content-addressed store, hash-verified

11 * @param listener - Callback invoked when the event is received.
12 */
13export function onMainEvent<T = EventData>(
14 event: EventType,
15 listener: (event: Electron.IpcMainEvent, args: T) => void,
16) {
17 ipcMain.on(event, listener as Parameters<typeof ipcMain.on>[1]);
18}
19
20/**
21 * Register a request/response IPC handler on the main process (ipcMain.handle).

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected