RouteInfo is an object that contains metadata about a specific route
Transition. It is read-only and internally immutable. It is also
not observable, because a
Transition instance is never changed after
RouteInfo is not user-constructible; the only legal way to get one is from
Transition. However, you can import the type by using
syntax with TypeScript or
import() in JSDoc comments.