Type alias Middleware

Middleware: ((payload: MiddlewarePayload, next: MiddlewareNext) => void)

Type declaration

    • (payload: MiddlewarePayload, next: MiddlewareNext): void
    • A function to run on the Event stream (each logEvent call)

      Parameters

      • payload: MiddlewarePayload

        The event and extra data being sent

      • next: MiddlewareNext

        Function to run the next middleware in the chain, not calling next will end the middleware chain

      Returns void

Generated using TypeDoc