Skip to content

Type Alias: EventHandler<E>

ts
type EventHandler<E> = (event: E) => void;

Defined in: src/wirestate-core/plugin/events/events.ts:69

Receives an emitted event from the bus.

Type Parameters

Type ParameterDefault typeDescription
E extends WireEventWireEventEvent shape delivered to the handler.

Parameters

ParameterType
eventE

Returns

void