import { ComponentType } from "./component" /** * 重定位配置 */ interface RoutersItem1Type { /** * 路由 */ path: string /** * 重定位路由 */ redirect: string } /** * 页面路由 */ interface RoutersItem2Type { /** * 路由 */ path: string /** * 元数据 */ meta?: { [key: string]: any } /** * 页面组件生成函数,返回一个Promise */ component: () => Promise /** * 子路由 */ children: Array } /** * 路由定义配置 */ export interface RouterOptionType { /** * 路由跳转配置 */ routers: Array }