Type Alias Middleware

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

中间件类型