UNPKG

539 BTypeScriptView Raw
1import { RouterHistory } from '../global/interfaces';
2export interface CreateBrowserHistoryOptions {
3 getUserConfirmation?: (message: string, callback: (confirmed: boolean) => {}) => {};
4 forceRefresh?: boolean;
5 keyLength?: number;
6 basename?: string;
7}
8/**
9 * Creates a history object that uses the HTML5 history API including
10 * pushState, replaceState, and the popstate event.
11 */
12declare const createBrowserHistory: (win: Window, props?: CreateBrowserHistoryOptions) => RouterHistory;
13export default createBrowserHistory;