Skip to main content

Function: parseServiceStringResponse()

function parseServiceStringResponse(
operation: string,
value: unknown,
context: {
details?: UnknownRecord;
serviceName: string;
}
): string;

Defined in: src/services/utils/validation.ts:348

Validates a renderer service response that should be a string.

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โ€‹

string

The string value when valid.

Throwsโ€‹

ApplicationError when the response is not a string.