Type alias LifecycleCallback

LifecycleCallback: ((state, templateProcessor) => Promise<void>)

Callback type definition for functions that handle lifecycle transitions.

This type represents an asynchronous function that will be called whenever the lifecycle state changes. It receives the new lifecycle state and a TemplateProcessor instance for processing.

Type declaration

    • (state, templateProcessor): Promise<void>
    • Parameters

      • state: LifecycleState

        The new lifecycle state that the system has transitioned to.

      • templateProcessor: default

        The TemplateProcessor instance to be used for handling the state transition.

      Returns Promise<void>

Returns

A Promise<void> indicating the asynchronous operation is complete.

Generated using TypeDoc