koel/resources/assets/js/utils/eventBus.ts

8 lines
185 B
TypeScript
Raw Normal View History

import { TypedEmitter } from 'tiny-typed-emitter'
import type { Events } from '@/config'
2022-04-15 14:24:30 +00:00
const eventBus = new TypedEmitter<Events>()
eventBus.setMaxListeners(100)
2022-04-15 14:24:30 +00:00
export { eventBus }