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 Parameters
Section titled “Type Parameters”| 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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | E |
next | (event: E) => void |
Returns
Section titled “Returns”void