ActionHandler type

The code to execute when the action's name is triggered.

type ActionHandler<TState, TData> = (
  context: TurnContext,
  state: TState,
  data: TData,
  action?: string
) => Promise<string>