koel/resources/assets/js/utils/eventBus.ts
2024-10-14 00:37:01 +07:00

7 lines
185 B
TypeScript

import { TypedEmitter } from 'tiny-typed-emitter'
import type { Events } from '@/config'
const eventBus = new TypedEmitter<Events>()
eventBus.setMaxListeners(100)
export { eventBus }