UNPKG

250 BTypeScriptView Raw
1import { FunctionComponent } from "preact";
2export interface HydrationProps {
3 method?: "idle" | "visible" | "interaction";
4}
5export declare function withHydrate<T extends FunctionComponent<any>>(Component: T, hydrationProps?: HydrationProps): T;