Type Alias Middleware<Context, Result>

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

Type Parameters

  • Context
  • Result = void