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

Function invokeMainEventWithData

src/preload/utils.ts:38–43  ·  view source on GitHub ↗
(
  event: EventType,
  data?: EventData,
)

Source from the content-addressed store, hash-verified

36 * Invoke a main-process handler with structured `EventData` and await the result.
37 */
38export 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.

Callers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected