UNPKG

@ovine/core

Version:

Build flexible admin system with json.

15 lines (14 loc) 438 B
/** * App route 配置 * TODO: 添加 unit test */ import { ObjectOf } from "../utils/types"; import { RouteItem } from "./types"; export declare function setRoutesConfig(routes: RouteItem[]): void; export declare function getRouteConfig(refresh?: boolean): RouteItem[]; export declare function getActionAddrMap(): ObjectOf<{ label: string; api: string; actionDesc?: string | undefined; auth?: boolean | undefined; }>;