parent
ac745c8356
commit
8b0cb2f0c5
@ -42,12 +42,12 @@ export type UrlMatchResult = {
|
|||||||
/**
|
/**
|
||||||
* A function for matching a route against URLs. Implement a custom URL matcher
|
* A function for matching a route against URLs. Implement a custom URL matcher
|
||||||
* for `Route.matcher` when a combination of `path` and `pathMatch`
|
* for `Route.matcher` when a combination of `path` and `pathMatch`
|
||||||
* is not expressive enough.
|
* is not expressive enough. Cannot be used together with `path` and `pathMatch`.
|
||||||
*
|
*
|
||||||
* @param segments An array of URL segments.
|
* @param segments An array of URL segments.
|
||||||
* @param group A segment group.
|
* @param group A segment group.
|
||||||
* @param route The route to match against.
|
* @param route The route to match against.
|
||||||
* @returns The match-result,
|
* @returns The match-result.
|
||||||
*
|
*
|
||||||
* @usageNotes
|
* @usageNotes
|
||||||
*
|
*
|
||||||
@ -386,9 +386,11 @@ export type RunGuardsAndResolvers = 'pathParamsChange' | 'pathParamsOrQueryParam
|
|||||||
*/
|
*/
|
||||||
export interface Route {
|
export interface Route {
|
||||||
/**
|
/**
|
||||||
* The path to match against, a URL string that uses router matching notation.
|
* The path to match against. Cannot be used together with a custom `matcher` function.
|
||||||
|
* A URL string that uses router matching notation.
|
||||||
* Can be a wild card (`**`) that matches any URL (see Usage Notes below).
|
* Can be a wild card (`**`) that matches any URL (see Usage Notes below).
|
||||||
* Default is "/" (the root path).
|
* Default is "/" (the root path).
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
path?: string;
|
path?: string;
|
||||||
/**
|
/**
|
||||||
@ -408,8 +410,7 @@ export interface Route {
|
|||||||
*/
|
*/
|
||||||
pathMatch?: string;
|
pathMatch?: string;
|
||||||
/**
|
/**
|
||||||
* A URL-matching function to use as a custom strategy for path matching.
|
* A custom URL-matching function. Cannot be used together with `path`.
|
||||||
* If present, supersedes `path` and `pathMatch`.
|
|
||||||
*/
|
*/
|
||||||
matcher?: UrlMatcher;
|
matcher?: UrlMatcher;
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user