Type alias Middleware<T>

Middleware<T>: ((context, next) => unknown)

Type Parameters

  • T

Type declaration

    • (context, next): unknown
    • Parameters

      • context: T
      • next: (() => Promise<void>)
          • (): Promise<void>
          • Returns Promise<void>

      Returns unknown

Generated using TypeDoc