UNPKG

418 BTypeScriptView Raw
1import { RouterHistory } from '../global/interfaces';
2export interface CreateHashHistoryOptions {
3 getUserConfirmation?: (message: string, callback: (confirmed: boolean) => {}) => {};
4 hashType?: 'hashbang' | 'noslash' | 'slash';
5 basename?: string;
6 keyLength?: number;
7}
8declare const createHashHistory: (win: Window, props?: CreateHashHistoryOptions) => RouterHistory;
9export default createHashHistory;