Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
21
node_modules/next/dist/client/components/router-reducer/ppr-navigations.d.ts
generated
vendored
Normal file
21
node_modules/next/dist/client/components/router-reducer/ppr-navigations.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import type { CacheNodeSeedData, FlightRouterState, FlightSegmentPath } from '../../../server/app-render/types';
|
||||
import type { CacheNode, HeadData, ReadyCacheNode } from '../../../shared/lib/app-router-context.shared-runtime';
|
||||
import type { FetchServerResponseResult } from './fetch-server-response';
|
||||
type SPANavigationTask = {
|
||||
route: FlightRouterState;
|
||||
node: CacheNode | null;
|
||||
dynamicRequestTree: FlightRouterState | null;
|
||||
children: Map<string, SPANavigationTask> | null;
|
||||
};
|
||||
type MPANavigationTask = {
|
||||
route: null;
|
||||
node: null;
|
||||
dynamicRequestTree: null;
|
||||
children: null;
|
||||
};
|
||||
export type Task = SPANavigationTask | MPANavigationTask;
|
||||
export declare function startPPRNavigation(navigatedAt: number, oldCacheNode: CacheNode, oldRouterState: FlightRouterState, newRouterState: FlightRouterState, prefetchData: CacheNodeSeedData | null, prefetchHead: HeadData | null, isPrefetchHeadPartial: boolean, isSamePageNavigation: boolean, scrollableSegmentsResult: Array<FlightSegmentPath>): Task | null;
|
||||
export declare function listenForDynamicRequest(task: SPANavigationTask, responsePromise: Promise<FetchServerResponseResult>): void;
|
||||
export declare function abortTask(task: SPANavigationTask, error: any): void;
|
||||
export declare function updateCacheNodeOnPopstateRestoration(oldCacheNode: CacheNode, routerState: FlightRouterState): ReadyCacheNode;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue