UNPKG

microsite

Version:
6 lines (5 loc) 250 B
import { FunctionComponent } from "preact"; export interface HydrationProps { method?: "idle" | "visible" | "interaction"; } export declare function withHydrate<T extends FunctionComponent<any>>(Component: T, hydrationProps?: HydrationProps): T;