Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
31
node_modules/next/dist/client/components/router-reducer/create-initial-router-state.d.ts
generated
vendored
Normal file
31
node_modules/next/dist/client/components/router-reducer/create-initial-router-state.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import type { CacheNode } from '../../../shared/lib/app-router-context.shared-runtime';
|
||||
import type { FlightDataPath } from '../../../server/app-render/types';
|
||||
import { type PrefetchCacheEntry } from './router-reducer-types';
|
||||
export interface InitialRouterStateParameters {
|
||||
navigatedAt: number;
|
||||
initialCanonicalUrlParts: string[];
|
||||
initialParallelRoutes: CacheNode['parallelRoutes'];
|
||||
initialFlightData: FlightDataPath[];
|
||||
location: Location | null;
|
||||
couldBeIntercepted: boolean;
|
||||
postponed: boolean;
|
||||
prerendered: boolean;
|
||||
}
|
||||
export declare function createInitialRouterState({ navigatedAt, initialFlightData, initialCanonicalUrlParts, initialParallelRoutes, location, couldBeIntercepted, postponed, prerendered, }: InitialRouterStateParameters): {
|
||||
tree: import("../../../server/app-render/types").FlightRouterState;
|
||||
cache: import("../../../shared/lib/app-router-context.shared-runtime").ReadyCacheNode;
|
||||
prefetchCache: Map<string, PrefetchCacheEntry>;
|
||||
pushRef: {
|
||||
pendingPush: boolean;
|
||||
mpaNavigation: boolean;
|
||||
preserveCustomHistoryState: boolean;
|
||||
};
|
||||
focusAndScrollRef: {
|
||||
apply: boolean;
|
||||
onlyHashChange: boolean;
|
||||
hashFragment: null;
|
||||
segmentPaths: never[];
|
||||
};
|
||||
canonicalUrl: string;
|
||||
nextUrl: string | null;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue