UNPKG

444 BTypeScriptView Raw
1import { History, LocationState } from './index';
2import { getConfirmation } from './DOMUtils';
3
4export type HashType = 'hashbang' | 'noslash' | 'slash';
5
6export interface HashHistoryBuildOptions {
7 basename?: string | undefined;
8 hashType?: HashType | undefined;
9 getUserConfirmation?: typeof getConfirmation | undefined;
10}
11
12export default function createHashHistory<S = LocationState>(options?: HashHistoryBuildOptions): History<S>;