Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
31 lines
1.6 KiB
TypeScript
31 lines
1.6 KiB
TypeScript
import type { CacheNodeSeedData, FlightData, FlightDataPath, FlightRouterState, FlightSegmentPath, Segment, HeadData, InitialRSCPayload } from '../shared/lib/app-router-types';
|
|
export type NormalizedFlightData = {
|
|
/**
|
|
* The full `FlightSegmentPath` inclusive of the final `Segment`
|
|
*/
|
|
segmentPath: FlightSegmentPath;
|
|
/**
|
|
* The `FlightSegmentPath` exclusive of the final `Segment`
|
|
*/
|
|
pathToSegment: FlightSegmentPath;
|
|
segment: Segment;
|
|
tree: FlightRouterState;
|
|
seedData: CacheNodeSeedData | null;
|
|
head: HeadData;
|
|
isHeadPartial: boolean;
|
|
isRootRender: boolean;
|
|
};
|
|
export declare function getFlightDataPartsFromPath(flightDataPath: FlightDataPath): NormalizedFlightData;
|
|
export declare function createInitialRSCPayloadFromFallbackPrerender(response: Response, fallbackInitialRSCPayload: InitialRSCPayload): InitialRSCPayload;
|
|
export declare function getNextFlightSegmentPath(flightSegmentPath: FlightSegmentPath): FlightSegmentPath;
|
|
export declare function normalizeFlightData(flightData: FlightData): NormalizedFlightData[] | string;
|
|
/**
|
|
* This function is used to prepare the flight router state for the request.
|
|
* It removes markers that are not needed by the server, and are purely used
|
|
* for stashing state on the client.
|
|
* @param flightRouterState - The flight router state to prepare.
|
|
* @param isHmrRefresh - Whether this is an HMR refresh request.
|
|
* @returns The prepared flight router state.
|
|
*/
|
|
export declare function prepareFlightRouterStateForRequest(flightRouterState: FlightRouterState, isHmrRefresh?: boolean): string;
|