Skip to content

MiddlewareFunc

Defined in: function-types.ts:38

Middleware is a function that intercepts an event and can pass it to the next handler. Useful for chaining logic or modifying event flow.

Type Parameter
E

MiddlewareFunc(event: E, next: (event: E) => void): void

Defined in: function-types.ts:38

Middleware is a function that intercepts an event and can pass it to the next handler. Useful for chaining logic or modifying event flow.

ParameterType
eventE
next(event: E) => void

void