You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
644 B

/**
* 将路由写入路由文件
* @param {*} newRoute 新的路由配置: { path, component, ... }
* @param {*} configPath 配置路径
* @param {*} absSrcPath 代码路径
*/
export declare function writeNewRoute(newRoute: any, configPath: any, absSrcPath: any): void;
/**
* 获取目标
* @param {*} configPath
* @param {*} newRoute
*/
export declare function getNewRouteCode(configPath: any, newRoute: any, absSrcPath: any): any;
/**
* 写入节点
* @param {*} node 找到的节点
* @param {*} newRoute 新的路由配置
*/
export declare function writeRouteNode(targetNode: any, newRoute: any, currentPath?: string): any;