Methods
addEventListener
- addEventListener(type: string, callback: function): void
-
Parameters
-
type: string
-
callback: function
Returns void
emitEvent
- emitEvent<T>(event: T): void
-
Type parameters
Parameters
Returns void
off
- off(type: string, callback: function): void
-
Parameters
-
type: string
-
callback: function
Returns void
on
- on(type: string, callback: function): void
-
Parameters
-
type: string
-
callback: function
Returns void
removeAllListeners
- removeAllListeners(): void
-
Returns void
removeEventListener
- removeEventListener(type: string, callback: function): void
-
Parameters
-
type: string
-
callback: function
Returns void
Wrapper class for event handling.