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: undefinedas a malformed response (valid for channels whose result type includesundefined).