Type alias Middleware<Context>

Middleware<Context>: ((ctx, next) => any | Promise<any>)

Type Parameters

  • Context

Type declaration

    • (ctx, next): any | Promise<any>
    • Parameters

      • ctx: Context
      • next: (() => Promise<any>)
          • (): Promise<any>
          • Returns Promise<any>

      Returns any | Promise<any>

      Typeparam

      Context 上下文类型。

Generated using TypeDoc