microsite
Version:
<br /> <br />
7 lines (6 loc) • 329 B
TypeScript
import { FunctionComponent } from "preact";
export declare const HydrateContext: import("preact").Context<string | false>;
export interface HydrationProps {
method?: "idle" | "visible" | "interaction";
}
export declare function withHydrate<T extends FunctionComponent<any>>(Component: T, hydrationProps?: HydrationProps): T;