Contains the component name and extracted path parameters from the URL.
Returned by RouteRegistry.findComponent. The fields are described
on ComponentDescriptor, which this narrows so that a match always
carries props, even when the path had no parameters.
Only props is narrowed, on purpose. Widening this to every field of
ComponentDescriptor would make each field added there required
here too, which is a contract the router never agreed to.
Result from matching a path to a registered route
Contains the component name and extracted path parameters from the URL. Returned by RouteRegistry.findComponent. The fields are described on ComponentDescriptor, which this narrows so that a match always carries
props, even when the path had no parameters.Only
propsis narrowed, on purpose. Widening this to every field of ComponentDescriptor would make each field added there required here too, which is a contract the router never agreed to.