Skip to main content

Interface: PreloadGuardDiagnosticsReport

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

Structured payload emitted when a preload guard rejects an incoming event.

Remarksโ€‹

Enables centralized diagnostics by forwarding guard failures, along with contextual metadata, to the Electron main process.

Propertiesโ€‹

channelโ€‹

channel: string

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

IPC channel associated with the rejected payload.


guardโ€‹

guard: string

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

Name of the guard function that rejected the payload.


metadata?โ€‹

optional metadata: Record<string, unknown>

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

Additional metadata describing the guard context.


payloadPreview?โ€‹

optional payloadPreview: string

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

Serialized preview of the rejected payload for debugging.


reason?โ€‹

optional reason: string

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

Optional human-readable reason supplied by the guard.


timestampโ€‹

timestamp: number

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

Timestamp (milliseconds since Unix epoch) when the guard triggered.