@tempots/ui

matchesRoute() function

Matches a path against a route.

Signature:

matchesRoute: 

extends string>(route: Route, path: P) => MatchResult

Parameters

Parameter

Type

Description

route

Route

The route to match against.

path

P

The path to match.

Returns: MatchResult

The match result.