Skip to main content

Interface: IpcResponse<T>

Defined in: shared/types/ipc.ts:29

Standardized IPC response envelope shared across renderer, preload, and main.

Extended byโ€‹

Type Parametersโ€‹

Tโ€‹

T = unknown

Propertiesโ€‹

data?โ€‹

optional data: T

Defined in: shared/types/ipc.ts:31

Response data returned on success.


error?โ€‹

optional error: string

Defined in: shared/types/ipc.ts:33

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error message when the handler fails.


metadata?โ€‹

optional metadata: UnknownRecord

Defined in: shared/types/ipc.ts:35

Optional metadata emitted by the handler.


successโ€‹

success: boolean

Defined in: shared/types/ipc.ts:37

Indicates whether the IPC call succeeded.


warnings?โ€‹

optional warnings: readonly string[]

Defined in: shared/types/ipc.ts:39

Optional non-fatal warnings emitted alongside the result.