Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/vinext/src/client/vinext-next-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,26 @@
import type { NEXT_DATA } from "vinext/shims/internal/utils";
import { isUnknownRecord } from "../utils/record.js";

export type VinextRuntimePrefetchLoadingFallback = {
attributes: Record<string, string>;
tagName: string;
text: string;
};

export type VinextLinkPrefetchRoute = {
canPrefetchLoadingShell: boolean;
canPrefetchRuntimeShell?: boolean;
canPrefetchStaticRoute?: boolean;
documentOnly?: boolean;
isDynamic: boolean;
loadingShellVaryParamNames?: string[];
patternParts: string[];
prefetchVaryParamNames?: string[];
prefetchVarySearchParams?: boolean;
requiresDynamicNavigationRequest?: boolean;
runtimePrefetchLoadingFallback?: VinextRuntimePrefetchLoadingFallback;
runtimePrefetchVaryParamNames?: string[];
runtimePrefetchVarySearchParams?: boolean;
};

/**
Expand Down
Loading
Loading