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

20
src/typings/api/auth.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
declare namespace Api {
/**
* namespace Auth
*
* backend api module: "auth"
*/
namespace Auth {
interface LoginToken {
token: string;
refreshToken: string;
}
interface UserInfo {
userId: string;
userName: string;
roles: string[];
buttons: string[];
}
}
}