共用方式為


MiddlewareHandler type

函式中間件所實作的簽章。

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