13 lines
321 B
TypeScript
13 lines
321 B
TypeScript
import { EventBus } from './event-bus';
|
|
import type { EventBusConfig } from './types';
|
|
|
|
/**
|
|
* Create a new event bus instance
|
|
*/
|
|
export function createEventBus(config: EventBusConfig): EventBus {
|
|
return new EventBus(config);
|
|
}
|
|
|
|
// Re-export everything
|
|
export { EventBus } from './event-bus';
|
|
export * from './types';
|