UNPKG

router5-plugin-browser

Version:
17 lines (16 loc) 634 B
import { PluginFactory, State } from 'router5'; import { BrowserPluginOptions } from './types'; declare module 'router5/dist/types/router' { interface Router { buildUrl(name: string, params?: { [key: string]: any; }): string; matchUrl(url: string): State | null; replaceHistoryState(name: string, params?: { [key: string]: any; }, title?: string): void; lastKnownState: State; } } declare function browserPluginFactory(opts?: BrowserPluginOptions, browser?: import("./types").Browser): PluginFactory; export default browserPluginFactory;