UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

25 lines (24 loc) 1.01 kB
export { getPageContextClientSerialized }; export { getPageContextClientSerializedAbort }; export { getGlobalContextClientSerialized }; export type { PageContextSerialization }; import type { UrlRedirect } from '../../../shared/route/abort.js'; import type { GlobalContextServerInternal } from '../globalContext.js'; type PageContextSerialization = { pageId: string; routeParams: Record<string, string>; _passToClient: string[]; is404: null | boolean; pageProps?: Record<string, unknown>; _pageContextInit: Record<string, unknown>; _globalContext: GlobalContextServerInternal; }; declare function getPageContextClientSerialized(pageContext: PageContextSerialization): string; declare function getGlobalContextClientSerialized(pageContext: PageContextSerialization): string; declare function getPageContextClientSerializedAbort(pageContext: Record<string, unknown> & ({ _urlRedirect: UrlRedirect; } | { _urlRewrite: string; } | { abortStatusCode: number; })): string;