Event

Index

Types

Type aliases

Types

EventHook

Hierarchy

EventHook

Methods

Name Signature Description
subscribe subscribe(listener: IEventListener <T>): void Subscribe a listener to this event.
unsubscribe unsubscribe(listener: IEventListener <T>): void Unsubscribe a listener from this event.
unsubscribeAll unsubscribeAll(): void Remove all listeners from this event.

Type aliases

IEventListener

IEventListener: function