Skip to content

Interface: ExtensionServiceLifecycle

Makaio Framework


Makaio Framework / contracts / ExtensionServiceLifecycle

Defined in: ../../../packages/contracts/src/extension/extension-lifecycle.ts:27

Minimal lifecycle shape accepted as an extension service.

BaseService satisfies this interface, but plain service classes can also participate in extension startup when they expose the same lifecycle.

optional checkHealth(): object[] | Promise<object[]>

Defined in: ../../../packages/contracts/src/extension/extension-lifecycle.ts:40

Called after the extension reaches active state.

Returns zero or more ExtensionWarning entries describing integration health issues the user may want to act on. An empty array (or omitting the hook entirely) signals that the extension is fully healthy.

Active health warnings, or an empty array when the extension is healthy.

object[]


Promise<object[]>


optional destroy(): void | Promise<void>

Defined in: ../../../packages/contracts/src/extension/extension-lifecycle.ts:31

Destroy the service and release resources when teardown is required.

void | Promise<void>


optional init(): void | Promise<void>

Defined in: ../../../packages/contracts/src/extension/extension-lifecycle.ts:29

Initialize the service when startup work is not constructor-owned.

void | Promise<void>