@types/history
Version:
TypeScript definitions for history
13 lines (9 loc) • 365 B
TypeScript
import { History } from './index';
import { getConfirmation } from './DOMUtils';
export type HashType = 'hashbang' | 'noslash' | 'slash';
export interface HashHistoryBuildOptions {
basename?: string;
hashType?: HashType;
getUserConfirmation?: typeof getConfirmation;
}
export default function createHashHistory(options?: HashHistoryBuildOptions): History;