UNPKG

408 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;
8 hashType?: HashType;
9 getUserConfirmation?: typeof getConfirmation;
10}
11
12export default function createHashHistory<S = LocationState>(options?: HashHistoryBuildOptions): History<S>;