@tempots/ui
matchesRoute() function
Matches a path against a route.
Signature:
matchesRoute: extends string>(route: Route, path: P) => MatchResult
Parameters
Parameter |
Type |
Description |
---|---|---|
route |
The route to match against. | |
path |
P |
The path to match. |
Returns: MatchResult
The match result.