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

    Type Alias RoutingShownFeatures

    RoutingShownFeatures:
        | { routes: Route
        | Routes }
        | { waypoints: PlanningWaypoint[] | Waypoints }

    The routes or waypoints just rendered, as routing.events.on('shown-features', ...) receives them.