UNPKG

mini-umi

Version:

a simple model for Umi and Vue3.2 + Vite

19 lines (18 loc) 535 B
import { type ViteUserConfig } from "@mini-umi/preset-umi"; import { type ICoreApi } from "@mini-umi/core"; import { IpresetUmi } from "@mini-umi/preset-umi"; declare type routes = { path: string; name: string; component?: any; children?: routes; }[]; export declare type UserConfig = { routes: routes; routesDir?: string; viteConfig: ViteUserConfig; }; export declare type IApi = ICoreApi & IpresetUmi & { modifyConfig: ((fn: (memo: UserConfig) => UserConfig) => UserConfig | undefined); }; export {};