UNPKG

ez-shp-storefront

Version:

A helper function collection for Shopify storefront.

16 lines (15 loc) 588 B
/** * Create an Event Bus object which has the registration and publishing API. * addEventListener and emitEventListeners functions * lets the subscriber and publisher to subscribe and publish on events respectively. */ export declare class EventBus { private eventTopics; static instance: EventBus; private constructor(); static getInstance(): EventBus; addEventListener(eventName: any, listener: any): any; emitEventListeners(eventName: any, params: any): void; removeListener(eventName: any, listener: any): void; getListener(eventName: any): any; }