Type Alias EventMap<TType>

EventMap<TType>: {
    [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
}