Stops listening to an event.
the event to stop listening to.
the function to remove from the listener array.
Rest
...args: T[K]Starts listening to an event.
the event to listen to.
function to be called when an this event is emitted.
Rest
...args: T[K]optional order to insert this hook with.
Listens to a single occurrence of an event.
the event to listen to.
function to be called when an this event is emitted.
Rest
...args: T[K]optional order to insert this hook with.
Generated using TypeDoc
Event emitter which allows listeners to return a value.
This is beneficial for the themes since it allows plugins to modify the HTML output without doing unsafe text replacement.
Very simple event emitter class which collects the return values of its listeners.
Example