UNPKG

@tanstack/router-core

Version:

Modern and scalable routing for React applications

19 lines (18 loc) 889 B
import { ParsedLocation } from './location.js'; import { AnyRoute } from './route.js'; import { AnyRouteMatch, MakeRouteMatch } from './Matches.js'; import { AnyRouter, UpdateMatchFn } from './router.js'; export declare function loadMatches(arg: { router: AnyRouter; location: ParsedLocation; matches: Array<AnyRouteMatch>; preload?: boolean; forceStaleReload?: boolean; onReady?: () => Promise<void>; updateMatch: UpdateMatchFn; sync?: boolean; }): Promise<Array<MakeRouteMatch>>; export type RouteComponentType = 'component' | 'errorComponent' | 'pendingComponent' | 'notFoundComponent'; export declare function loadRouteChunk(route: AnyRoute, componentTypesToLoad?: Array<RouteComponentType>): Promise<void> | undefined; export declare function routeNeedsPreload(route: AnyRoute): boolean; export declare const componentTypes: Array<RouteComponentType>;