Skip to main content

shared/utils/ipcResponse

Shared IPC response envelope helpers.

Remarksโ€‹

The application standardizes all request/response style IPC handlers on the IpcResponse envelope. Historically, both preload and renderer code carried their own small helpers for validating/unwrapping that envelope.

This module centralizes that logic so:

  • Preload typed invokers and any diagnostics tooling share identical semantics,
  • We avoid divergence between "typed" and "void" invokers,
  • We do not accidentally treat data: undefined as a malformed response (valid for channels whose result type includes undefined).

Interfacesโ€‹

Functionsโ€‹