Constructors
Methods
clear
- clear(): void
Returns void
dispatch
- dispatch<T>(event: string, data: T): void
Returns void
emit
- emit<T>(event: string, data: T): void
Returns void
listen
- listen<T>(event: string, callback: EventCallback<T>): void
Parameters
- event: string
- callback: EventCallback<T>
Returns void
off
- off<T>(event: string, callback: EventCallback<T>): void
Parameters
- event: string
- callback: EventCallback<T>
Returns void
on
- on<T>(event: string, callback: EventCallback<T>): void
Parameters
- event: string
- callback: EventCallback<T>
Returns void
unlisten
- unlisten<T>(event: string, callback: EventCallback<T>): void
Parameters
- event: string
- callback: EventCallback<T>
Returns void
Clear all event listeners