mobx-wouter
Version:
<img src="assets/logo.png" align="right" height="156" alt="logo" />
20 lines • 1.04 kB
TypeScript
import { IMobxHistory, IMobxLocation, IQueryParams } from 'mobx-location-history';
import { IMobxRouter, RouterConfig, RouterNavigateParams, RouterPath, RouterToConfig, RouterType } from './router.types.js';
export declare class MobxRouter implements IMobxRouter {
protected config: RouterConfig;
history: IMobxHistory;
location: IMobxLocation;
queryParams: IQueryParams;
baseUrl: string | undefined;
type: RouterType;
constructor(config: RouterConfig);
createPath(to: RouterToConfig): RouterPath;
createUrl(to: RouterToConfig, type?: RouterType): string;
protected hashNavigate(to: RouterToConfig, options?: RouterNavigateParams): void;
protected browserNavigate(to: RouterToConfig, options?: RouterNavigateParams): void;
protected lastViewTransition?: ViewTransition;
protected wrapInViewTransition(action: () => void, useStartViewTransition?: boolean): void;
navigate(to: RouterToConfig, options?: RouterNavigateParams): void;
back(): void;
}
//# sourceMappingURL=router.d.ts.map