IEventListenerΒΆ

Interface IEventListener<T>

A listener for webvis events that can be registered via the EventAPI.

The listener consumes an event that extends WebVisEvent and is expected to not return anything. If the listener returns a promise, the listener execution mechanism will not wait for the promise to resolve.

The event's type property specifies its EventType and determines its structure.

Type Parameters

  • T extends WebVisEvent = WebVisEvent

    The type of event that the listener listens to. This can also be a union of multiple event types.

  • Parameters

    • event: T

      The event that has been fired.

    Returns void