rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
10 lines (9 loc) • 382 B
TypeScript
export interface ClientNavigationOptions {
onNavigate?: () => void;
scrollToTop?: boolean;
scrollBehavior?: "auto" | "smooth" | "instant";
}
export declare function validateClickEvent(event: MouseEvent, target: HTMLElement): boolean;
export declare function initClientNavigation(opts?: ClientNavigationOptions): {
handleResponse: (response: Response) => boolean;
};