Type Alias: EventHandler<E>
ts
type EventHandler<E> = (event: E) => void;Defined in: src/wirestate-core/plugin/events/events.ts:73
Receives an emitted event from the bus.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
E extends WireEvent | WireEvent | Event shape delivered to the handler. |
Parameters
| Parameter | Type |
|---|---|
event | E |
Returns
void
Remarks
May start asynchronous work. The bus does not await a returned promise, and reports a rejection through the container error handler.