Skip to main content

Interface: CleanupResolutionHandlers

Defined in: src/services/utils/cleanupHandlers.ts:39

Callback contract used when validating cleanup handlers returned from the preload bridge.

Remarksโ€‹

Services provide implementations for these hooks so they can capture diagnostics and supply fallbacks that preserve their public contract even when the bridge misbehaves.

Propertiesโ€‹

handleCleanupError()โ€‹

readonly handleCleanupError: (error: unknown) => void

Defined in: src/services/utils/cleanupHandlers.ts:43

Invoked when the validated cleanup handler throws during execution.

Parametersโ€‹

errorโ€‹

unknown

Returnsโ€‹

void


handleInvalidCleanup()โ€‹

readonly handleInvalidCleanup: (context: CleanupValidationContext) => () => void

Defined in: src/services/utils/cleanupHandlers.ts:49

Invoked when the preload bridge does not return a function. The handler must log diagnostics and return a fallback cleanup to preserve the service contract.

Parametersโ€‹

contextโ€‹

CleanupValidationContext

Returnsโ€‹

(): void

Returnsโ€‹

void