优化useGetUserInfo

master
LiuJiaNan 2025-11-08 16:01:32 +08:00
parent 4dc15b5a67
commit 3d57613ffd
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@ export type getUserInfoFunction = () => Promise<Record<string, any>>;
*
*/
export default function useGetUserInfo(returnType: "array"): [boolean, getUserInfoFunction];
export default function useGetUserInfo(returnType?: "object"): { loading: boolean; getDictionary: getUserInfoFunction };
export default function useGetUserInfo(returnType?: "object"): { loading: boolean; getUserInfo: getUserInfoFunction };