@remix-run/server-runtime
Version:
Server runtime for Remix
12 lines (11 loc) • 465 B
TypeScript
import type { HydrationState } from "@remix-run/router";
import type { FutureConfig } from "./entry";
type ValidateShape<T, Shape> = T extends Shape ? Exclude<keyof T, keyof Shape> extends never ? T : never : never;
export declare function createServerHandoffString<T>(serverHandoff: {
state?: ValidateShape<T, HydrationState>;
criticalCss?: string;
basename: string | undefined;
future: FutureConfig;
isSpaMode: boolean;
}): string;
export {};