refactor(types): move Auth and Route namespaces to separate files and clean up api.d.ts

This commit is contained in:
Azir
2025-06-28 13:43:36 +08:00
committed by Soybean
parent 8439a60070
commit d37ce04606
3 changed files with 39 additions and 37 deletions

19
src/typings/api/route.d.ts vendored Normal file
View File

@ -0,0 +1,19 @@
declare namespace Api {
/**
* namespace Route
*
* backend api module: "route"
*/
namespace Route {
type ElegantConstRoute = import('@elegant-router/types').ElegantConstRoute;
interface MenuRoute extends ElegantConstRoute {
id: string;
}
interface UserRoute {
routes: MenuRoute[];
home: import('@elegant-router/types').LastLevelRouteKey;
}
}
}