react-view-router
Version:
react-view-router
11 lines (10 loc) • 373 B
TypeScript
import { History, HistoryType, To, PartialPath } from './types';
export declare const HashChangeEventType = "hashchange";
export declare const PopStateEventType = "popstate";
export declare function createHistory(options: {
window: Window;
type: HistoryType;
getLocationPath: () => PartialPath;
createHref: (to: To) => string;
extra?: any;
}): History;