Function: parseServiceBooleanResponse()
function parseServiceBooleanResponse(
operation: string,
value: unknown,
context: {
details?: UnknownRecord;
serviceName: string;
}
): boolean;
Defined in: src/services/utils/validation.ts:313
Validates a renderer service response that should be a boolean.
Parametersโ
operationโ
string
Logical operation name used in diagnostics.
valueโ
unknown
Raw value returned by the preload bridge.
contextโ
Service-specific diagnostics.
details?โ
UnknownRecord
serviceNameโ
string
Returnsโ
boolean
The boolean value when valid.
Throwsโ
ApplicationError when the response is not a boolean.