fix(typescript error): Change pubSubServiceInterface file type to typescript (#3546)
Co-authored-by: edward65 <edward@afxmedical.com>
This commit is contained in:
parent
b33ad0c7e9
commit
eb22328fc0
@ -89,6 +89,13 @@ function _broadcastEvent(eventName, callbackProps) {
|
|||||||
|
|
||||||
/** Export a PubSubService class to be used instead of the individual items */
|
/** Export a PubSubService class to be used instead of the individual items */
|
||||||
export class PubSubService {
|
export class PubSubService {
|
||||||
|
EVENTS: any;
|
||||||
|
subscribe: (eventName: string, callback: Function) => { unsubscribe: () => any; };
|
||||||
|
_broadcastEvent: (eventName: string, callbackProps: any) => void;
|
||||||
|
_unsubscribe: (eventName: string, listenerId: string) => void;
|
||||||
|
_isValidEvent: (eventName: string) => boolean;
|
||||||
|
listeners: {};
|
||||||
|
unsubscriptions: any[];
|
||||||
constructor(EVENTS) {
|
constructor(EVENTS) {
|
||||||
this.EVENTS = EVENTS;
|
this.EVENTS = EVENTS;
|
||||||
this.subscribe = subscribe;
|
this.subscribe = subscribe;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user