Create a new instance of EventBus
The new event bus
import { minibus, event } from '@knicola/minibus'const bus = new minibus()const TestEvent = event<string>('test')bus.subscribe(TestEvent, (data) => { console.log(data)})bus.dispatch(TestEvent, 'Hello World!')
Generated using TypeDoc
Create a new instance of EventBus
Returns
The new event bus
Example