Skip to main content

Interface: CleanupResolutionHandlers

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

Callback contract used when validating cleanup handlers.

Propertiesโ€‹

handleCleanupError()โ€‹

readonly handleCleanupError: (error: unknown) => void

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

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:44

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