@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.
@@ -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 = AnyRouter>(opts?: {
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 = AnyRouter>(opts?: {
532
+ clearCache: <TRouter extends AnyRouter = this>(opts?: {
533
533
  filter?: (d: MakeRouteMatchUnion<TRouter>) => boolean;
534
534
  }) => void;
535
535
  clearExpiredCache: () => void;
@@ -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 = AnyRouter>(opts?: {
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 = AnyRouter>(opts?: {
532
+ clearCache: <TRouter extends AnyRouter = this>(opts?: {
533
533
  filter?: (d: MakeRouteMatchUnion<TRouter>) => boolean;
534
534
  }) => void;
535
535
  clearExpiredCache: () => void;