Files
prestashop/admin_o2w/themes/new-theme/js/components/event-emitter.ts
2026-04-09 18:31:51 +02:00

15 lines
463 B
TypeScript

/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
import {EventEmitter as EventEmitterClass} from 'events';
/**
* We instanciate one EventEmitter (restricted via a const) so that every components
* register/dispatch on the same one and can communicate with each other.
*/
export const EventEmitter = new EventEmitterClass();
export default EventEmitter;