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

Function invokeMainEvent

src/preload/utils.ts:22–33  ·  view source on GitHub ↗
(
  event: EventType,
  data?: string,
)

Source from the content-addressed store, hash-verified

20 * @returns A promise that resolves to the string response from the main process.
21 */
22export async function invokeMainEvent(
23 event: EventType,
24 data?: string,
25): Promise<string> {
26 try {
27 return await ipcRenderer.invoke(event, data);
28 } catch (err) {
29 // biome-ignore lint/suspicious/noConsole: preload environment is strictly sandboxed
30 console.error(`[IPC] invoke failed: ${event}`, err);
31 throw err;
32 }
33}
34
35/**
36 * Invoke a main-process handler with structured `EventData` and await the result.

Callers 2

index.tsFile · 0.90
utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected