File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -625,9 +625,12 @@ export type StartTransitionFn = (fn: () => void) => void
625
625
export interface MatchRoutesFn {
626
626
(
627
627
pathname : string ,
628
- locationSearch : AnySchema ,
628
+ locationSearch ? : AnySchema ,
629
629
opts ?: MatchRoutesOpts ,
630
- ) : Array < AnyRouteMatch >
630
+ ) : Array < MakeRouteMatchUnion >
631
+ /**
632
+ * @deprecated use the following signature instead
633
+ */
631
634
( next : ParsedLocation , opts ?: MatchRoutesOpts ) : Array < AnyRouteMatch >
632
635
(
633
636
pathnameOrNext : string | ParsedLocation ,
@@ -1019,15 +1022,6 @@ export class RouterCore<
1019
1022
return this . routesById as Record < string , AnyRoute >
1020
1023
}
1021
1024
1022
- /**
1023
- @deprecated use the following signature instead
1024
- ```ts
1025
- matchRoutes (
1026
- next: ParsedLocation,
1027
- opts?: { preload?: boolean; throwOnError?: boolean },
1028
- ): Array<AnyRouteMatch>;
1029
- ```
1030
- */
1031
1025
matchRoutes : MatchRoutesFn = (
1032
1026
pathnameOrNext : string | ParsedLocation ,
1033
1027
locationSearchOrOpts ?: AnySchema | MatchRoutesOpts ,
You can’t perform that action at this time.
0 commit comments