Version: 2.69.0

EventMap

THEOplayer > EventMap

EventMap type

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

Signature:
export declare type EventMap<TType extends string> = {
[type in TType]: Event;
};

Example

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