This is the documentation of version 0.56.0. 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 }

    What routing.events.on('shown-features', ...) receives: whichever of routes or waypoints was just rendered.