This is the documentation of version 0.62.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias EventStateIds

    EventStateIds: Partial<Record<EventState, (string | number)[]>>

    The ids of the shown features that have an event state, by state: what putEventState and user interactions have put, and cleanEventState(s) hasn't taken off yet.

    A state no feature has is absent rather than an empty array. The ids are those ByIdOrIndex takes, so each can go straight back into putEventState or cleanEventState.

    const { click: [selectedID] = [] } = placesModule.getEventStates();