From 8b0cb2f0c503f6be25ae070b0588774285374d04 Mon Sep 17 00:00:00 2001 From: Judy Bogart Date: Wed, 2 Oct 2019 10:54:57 -0700 Subject: [PATCH] docs: correct matcher description (#32970) PR Close #32970 --- packages/router/src/config.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/router/src/config.ts b/packages/router/src/config.ts index 658b97aae2..b871429a66 100644 --- a/packages/router/src/config.ts +++ b/packages/router/src/config.ts @@ -42,12 +42,12 @@ export type UrlMatchResult = { /** * A function for matching a route against URLs. Implement a custom URL matcher * 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 group A segment group. * @param route The route to match against. - * @returns The match-result, + * @returns The match-result. * * @usageNotes * @@ -386,9 +386,11 @@ export type RunGuardsAndResolvers = 'pathParamsChange' | 'pathParamsOrQueryParam */ 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). * Default is "/" (the root path). + * */ path?: string; /** @@ -408,8 +410,7 @@ export interface Route { */ pathMatch?: string; /** - * A URL-matching function to use as a custom strategy for path matching. - * If present, supersedes `path` and `pathMatch`. + * A custom URL-matching function. Cannot be used together with `path`. */ matcher?: UrlMatcher; /**