IEventBus.subscribe<T>(type: string,handler: EventHandler<T>): Unsubscribe
Subscribes to an event type.
handler: EventHandler<T>
Invoked for each published event of the type
Call to remove the subscription
IEventBus.subscribe<T>(type: string,handler: EventHandler<T>): Unsubscribe
Subscribes to an event type.
handler: EventHandler<T>
Invoked for each published event of the type
Call to remove the subscription
import { type IEventBus } from "common/src/index.ts";