vike
Version:
The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.
13 lines (12 loc) • 488 B
TypeScript
import '../assertEnvClient.js';
export { setScrollPosition };
export { autoSaveScrollPosition };
export { scrollToHashOrTop };
export type { ScrollTarget };
import { type ScrollPosition } from './history.js';
type ScrollTarget = undefined | {
preserveScroll: boolean;
} | ScrollPosition;
declare function setScrollPosition(scrollTarget: ScrollTarget, url?: string): void;
declare function scrollToHashOrTop(hash: null | string): void;
declare function autoSaveScrollPosition(): void;