Skip to content

Commit

Permalink
fix(typescript error): Change pubSubServiceInterface file type to typ…
Browse files Browse the repository at this point in the history
…escript (#3546)

Co-authored-by: edward65 <[email protected]>
  • Loading branch information
Edward-Son and edward65 authored Oct 3, 2023
1 parent b33ad0c commit eb22328
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platform/core/src/services/_shared/pubSubServiceInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ function _broadcastEvent(eventName, callbackProps) {

/** Export a PubSubService class to be used instead of the individual items */
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) {
this.EVENTS = EVENTS;
this.subscribe = subscribe;
Expand Down

0 comments on commit eb22328

Please sign in to comment.