Function: isIpcResponseEnvelope()
isIpcResponseEnvelope(
value:unknown):value is IpcResponse<unknown>
Defined in: shared/utils/ipcResponse.ts:34
Runtime type guard for IpcResponse envelopes.
Parametersโ
valueโ
unknown
Returnsโ
value is IpcResponse<unknown>
Remarksโ
This guard is intentionally permissive: it only verifies the presence of the
required success: boolean discriminator. The optional properties (data,
error, warnings, metadata) are validated in the extractor functions.
Keeping the guard permissive avoids brittle coupling to future metadata fields and matches the fuzzing expectations in the test suite.