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

matchPath

Performs pattern matching on a URL pathname and returns information about the match.

function matchPath<ParamKey extends ParamParseKey<Path>, Path extends string>(pattern: PathPattern<Path> | Path, pathname: string): PathMatch<ParamKey> | null;
§
matchPath<ParamKey extends ParamParseKey<Path>, Path extends string>(pattern: PathPattern<Path> | Path, pathname: string): PathMatch<ParamKey> | null
[src]

§Type Parameters

§
ParamKey extends ParamParseKey<Path>
[src]
§
Path extends string
[src]

§Parameters

§
pathname: string
[src]

§Return Type

§
PathMatch<ParamKey> | null
[src]