A type representing the events that the instance can emit and listen to.
A type representing the events that the instance can emit and listen to.
Adds an event listener for a specific event.
The type of the event key.
An EventHandle with a remove method to unsubscribe the listener.
Dispatches the given event with given payload on the plugin.
The event to listen to.
Simple event bus class that allows adding event listeners and emitting events. Events can be emitted by calling dispatchEvent.