Documentation - v1.2.0-alpha.3
    Preparing search index...

    Type Alias ApplicationEventHandler<TState>

    ApplicationEventHandler: (
        context: TurnContext,
        state: TState,
    ) => Promise<boolean>

    Event handler function type for application events.

    Type Parameters

    • TState extends TurnState

      The state type extending TurnState.

    Type Declaration

      • (context: TurnContext, state: TState): Promise<boolean>
      • Parameters

        • context: TurnContext

          The turn context containing activity information.

        • state: TState

          The current turn state.

        Returns Promise<boolean>

        A promise that resolves to a boolean indicating whether to continue execution.