Type alias EventMap<TType>

EventMap<TType>: Record<TType, Event<TType>>

A record used to map events. Each entry contains an event name with associated event interface.

Type Parameters

  • TType extends string

Example

{
'statechange': StateChangeEvent,
'error': ErrorEvent
}