@uiw-admin/plugins
Version:
21 lines (20 loc) • 723 B
TypeScript
import * as t from '@babel/types';
import { RoutersProps } from './interface';
export declare const getReactLazy: (path: string) => t.CallExpression;
export declare const getJSX: (name: string) => t.JSXElement;
export declare const IsModel: (content: string) => {
isModels: boolean;
modelNames: undefined;
isCreateModel: boolean;
};
export declare const stringToJson: (str: string) => any;
export declare const getJSONData: (content: string) => {
isJSON: boolean;
jsonArr: RoutersProps[];
jsonCode: string;
};
/** 对字符串进行解析处理图标和 404、403、500 页面加载 */
export declare const babelPluginComponents: (content: string) => {
iconsList: string[];
code: string;
};