Type Parameters
-
T extends Record<string, unknown>
Constructors
constructor
- new EventBus<T>(): EventBus<T>
-
Type Parameters
-
T extends Record<string, unknown>
Methods
on
- on(eventName: EventMapKey<DefaultBusEventMap & T>, handlerFn: ((payload: unknown) => void)): void
-
Parameters
-
-
handlerFn: ((payload: unknown) => void)
-
- (payload: unknown): void
-
Returns void
Returns void