8 lines
300 B
TypeScript
8 lines
300 B
TypeScript
import { EventBus, EventBusConfig, EventHandler } from './EventBus';
|
|
|
|
export { EventBus, EventBusConfig, EventHandler };
|
|
|
|
// Convenience function to create an event bus with the default configuration
|
|
export function createEventBus(config: EventBusConfig): EventBus {
|
|
return new EventBus(config);
|
|
}
|