jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
18 lines (17 loc) • 709 B
TypeScript
import type { History } from 'history';
import type { ActionObject, RendererEnv } from 'jamis-core';
import type { Match } from 'path-to-regexp';
export declare const getRouterHistory: () => History<unknown>;
export declare const setRouterHistory: (history: History) => History<unknown>;
export declare const setEnv: (env: RendererEnv) => void;
export declare const isCurrentUrl: (to: string, ctx?: {
strict?: boolean;
end?: boolean;
pathname?: string;
[key: string]: any;
}) => Match<object> | boolean;
export declare const updateLocation: (to: string, replace: boolean) => any;
/**
* 路由跳转的关键方法
*/
export declare const jumpTo: (to: string, action?: ActionObject) => void;