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

    Type Alias RouteHandler<TState>

    RouteHandler: (context: TurnContext, state: TState) => Promise<void>

    A handler function for routing operations in a specific turn context and state.

    Type Parameters

    • TState extends TurnState

      The type of the turn state.

    Type Declaration

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

        • context: TurnContext

          The turn context for the current operation.

        • state: TState

          The state associated with the current turn.

        Returns Promise<void>

        A promise that resolves when the routing operation is complete.