Skip to content

Documentation / @super-line/server / PluginMiddleware

Type Alias: PluginMiddleware ​

PluginMiddleware = (ctx, info, next) => Awaitable<void>

Defined in: index.ts:177

A plugin's flat middleware — like Middleware but ctx is unknown (a plugin is written independently of the host's per-role ctx). Concatenated after the host chain, in plugin array order.

Parameters ​

ctx ​

unknown

info ​

MiddlewareInfo

next ​

() => Promise<void>

Returns ​

Awaitable<void>

Released under the MIT License.