matchRoutes
Matches the given routes to a location and returns the match data.
function matchRoutes<RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject>(
routes: RouteObjectType[],
locationArg: Partial<Location> | string,
basename?: string,
): AgnosticRouteMatch<string, RouteObjectType>[] | null;§
matchRoutes<RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject>(routes: RouteObjectType[], locationArg: Partial<Location> | string, basename?: string): AgnosticRouteMatch<string, RouteObjectType>[] | null
[src]§Type Parameters
§
RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject
[src]§Parameters
§Return Type
§
AgnosticRouteMatch<string, RouteObjectType>[] | null
[src]