Skip to content

Type Alias: MiddlewareHandler ​

MiddlewareHandler = (invocation, next) => Promise<unknown>

A middleware function: it runs around the rest of the pipeline (see Middleware.handle).

Parameters ​

invocation ​

ActionInvocation

The request.

next ​

Next

Runs the rest of the pipeline.

Returns ​

Promise<unknown>

The result given to the previous middleware (finally, to the adapter).

Released under the MIT License.