feat: update exportData method with improved type annotations
- Refined `exportData` method to use `Record<string, unknown>` for more precise type safety.
This commit is contained in:
@@ -61,8 +61,8 @@ export const UserService = {
|
||||
return data;
|
||||
},
|
||||
|
||||
async exportData(): Promise<any> {
|
||||
const { data } = await api.get("/users/me/export");
|
||||
async exportData(): Promise<Record<string, unknown>> {
|
||||
const { data } = await api.get<Record<string, unknown>>("/users/me/export");
|
||||
return data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user