Interface EventDispatcher
Methods
addListener
- addListener<T>(eventName: string, listener: ((event: CustomEvent<T>) => void)): void
-
Parameters
-
eventName: string
-
listener: ((event: CustomEvent<T>) => void)
-
- (event: CustomEvent<T>): void
-
Returns void
Returns void
dispatch
- dispatch<T>(eventName: string, data: T): CustomEvent<T>
-
Parameters
-
eventName: string
-
data: T
Returns CustomEvent<T>
removeListener
- removeListener<T>(eventName: string, listener: ((event: CustomEvent<T>) => void)): void
-
Parameters
-
eventName: string
-
listener: ((event: CustomEvent<T>) => void)
-
- (event: CustomEvent<T>): void
-
Returns void
Returns void
Service for handling application level events