UNPKG

mobx-wouter

Version:

<img src="assets/logo.png" align="right" height="156" alt="logo" />

24 lines 1.22 kB
import { History, IQueryParams } from 'mobx-location-history'; import { IRouter, RouterConfig, RouterNavigateParams, RouterPath, RouterToConfig } from './router.types.js'; export declare class Router<THistory extends History = History> implements IRouter<THistory> { protected config: RouterConfig<THistory>; history: THistory; queryParams: IQueryParams; baseUrl: string | undefined; constructor(config: RouterConfig<THistory>); createPath(to: RouterToConfig): RouterPath; get location(): import("mobx-location-history").Location; createUrl(to: RouterToConfig): string; protected lastViewTransition?: ViewTransition; protected wrapInViewTransition(action: () => void, useStartViewTransition?: boolean): void; protected hashNavigate(to: RouterToConfig, options?: RouterNavigateParams): void; navigate(to: RouterToConfig, options?: RouterNavigateParams): void; back(): void; } /** * @deprecated Use `Router` instead. * This export will be removed in next major release */ export declare const MobxRouter: typeof Router; export declare const createRouter: <THistory extends History>(config: RouterConfig<THistory>) => Router<THistory>; //# sourceMappingURL=router.d.ts.map