Skip to content

Type Alias: EventHandler<E>

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

Defined in: src/wirestate-core/types/events.ts:26

Represents the function that handles an event.

Type Parameters

Type ParameterDefault type
E extends EventEvent

Parameters

ParameterType
eventE

Returns

void