router5-plugin-browser
Version:
Router5 browser plugin
17 lines (16 loc) • 634 B
TypeScript
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;