Interface: ExtensionServiceLifecycle
Makaio Framework / contracts / ExtensionServiceLifecycle
Interface: ExtensionServiceLifecycle
Section titled “Interface: 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.
Methods
Section titled “Methods”checkHealth()?
Section titled “checkHealth()?”
optionalcheckHealth():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.
Returns
Section titled “Returns”Active health warnings, or an empty array when the extension is healthy.
object[]
Promise<object[]>
destroy()?
Section titled “destroy()?”
optionaldestroy():void|Promise<void>
Defined in: ../../../packages/contracts/src/extension/extension-lifecycle.ts:31
Destroy the service and release resources when teardown is required.
Returns
Section titled “Returns”void | Promise<void>
init()?
Section titled “init()?”
optionalinit():void|Promise<void>
Defined in: ../../../packages/contracts/src/extension/extension-lifecycle.ts:29
Initialize the service when startup work is not constructor-owned.
Returns
Section titled “Returns”void | Promise<void>