MiddlewareHandler type

由基于函数的中间件实现的签名。

type MiddlewareHandler = (context: TurnContext, next: () => Promise<void>) => Promise<void>;
type MiddlewareHandler = (
  context: TurnContext,
  next: () => Promise<void>
) => Promise<void>