Type Alias EventMap<TType>

EventMap: { [type in TType]: Event }

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

Type Parameters

  • TType extends string
{
'statechange': StateChangeEvent,
'error': ErrorEvent
}