UNPKG

history-with-query

Version:

Manage session history with JavaScript

14 lines (11 loc) 383 B
import { History, LocationState } from './index'; import { getConfirmation } from './DOMUtils'; export interface BrowserHistoryBuildOptions { basename?: string; forceRefresh?: boolean; getUserConfirmation?: typeof getConfirmation; keyLength?: number; } export default function createBrowserHistory<S = LocationState>( options?: BrowserHistoryBuildOptions, ): History<S>;