Skip to content

PluginMiddlewareWrapper

Wraps the handler's return or rejection. Return or await `run(invocation)` exactly once. The middleware's `next` and `stop` still control the chain.

Signature

export type PluginMiddlewareWrapper = (invocation: PluginMiddlewareInvocation, run: PluginMiddlewareRun) => Awaitable<void>;

Members

This export does not declare public properties or methods in the generated declaration file.