Properties
Static Private theListeners
theListeners: object
Type declaration
-
[key: string]: Array<function>
Methods
Static addListener
- addListener(eventType: string, listener: function): object
-
Parameters
-
eventType: string
-
listener: function
Returns object
Static emit
- emit(eventType: string, ...args: any[]): void
-
Parameters
-
eventType: string
-
Rest ...args: any[]
Returns void
Static listeners
- listeners(eventType: string): function[]
-
Parameters
Returns function[]
Static removeAllListeners
- removeAllListeners(eventType: string): void
Register a specific callback to be called on a particular event. A token is returned that can be used to remove the listener.