@tanstack/react-router 1.77.3 → 1.77.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +2 -2
- package/dist/esm/router.d.ts +2 -2
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +2 -2
package/dist/cjs/router.d.cts
CHANGED
|
@@ -525,11 +525,11 @@ export declare class Router<in out TRouteTree extends AnyRoute, in out TTrailing
|
|
|
525
525
|
updateMatch?: (id: string, updater: (match: AnyRouteMatch) => AnyRouteMatch) => void;
|
|
526
526
|
getMatch?: (matchId: string) => AnyRouteMatch | undefined;
|
|
527
527
|
}) => Promise<Array<MakeRouteMatch>>;
|
|
528
|
-
invalidate: <TRouter extends AnyRouter =
|
|
528
|
+
invalidate: <TRouter extends AnyRouter = this>(opts?: {
|
|
529
529
|
filter?: (d: MakeRouteMatchUnion<TRouter>) => boolean;
|
|
530
530
|
}) => Promise<void>;
|
|
531
531
|
resolveRedirect: (err: AnyRedirect) => ResolvedRedirect;
|
|
532
|
-
clearCache: <TRouter extends AnyRouter =
|
|
532
|
+
clearCache: <TRouter extends AnyRouter = this>(opts?: {
|
|
533
533
|
filter?: (d: MakeRouteMatchUnion<TRouter>) => boolean;
|
|
534
534
|
}) => void;
|
|
535
535
|
clearExpiredCache: () => void;
|
package/dist/esm/router.d.ts
CHANGED
|
@@ -525,11 +525,11 @@ export declare class Router<in out TRouteTree extends AnyRoute, in out TTrailing
|
|
|
525
525
|
updateMatch?: (id: string, updater: (match: AnyRouteMatch) => AnyRouteMatch) => void;
|
|
526
526
|
getMatch?: (matchId: string) => AnyRouteMatch | undefined;
|
|
527
527
|
}) => Promise<Array<MakeRouteMatch>>;
|
|
528
|
-
invalidate: <TRouter extends AnyRouter =
|
|
528
|
+
invalidate: <TRouter extends AnyRouter = this>(opts?: {
|
|
529
529
|
filter?: (d: MakeRouteMatchUnion<TRouter>) => boolean;
|
|
530
530
|
}) => Promise<void>;
|
|
531
531
|
resolveRedirect: (err: AnyRedirect) => ResolvedRedirect;
|
|
532
|
-
clearCache: <TRouter extends AnyRouter =
|
|
532
|
+
clearCache: <TRouter extends AnyRouter = this>(opts?: {
|
|
533
533
|
filter?: (d: MakeRouteMatchUnion<TRouter>) => boolean;
|
|
534
534
|
}) => void;
|
|
535
535
|
clearExpiredCache: () => void;
|