Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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

§Parameters

§
routes: RouteObjectType[]
[src]
§
locationArg: Partial<Location> | string
[src]
§
basename?: string optional
[src]

§Return Type

§
AgnosticRouteMatch<string, RouteObjectType>[] | null
[src]