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;
|
return data;
|
||||||
},
|
},
|
||||||
|
|
||||||
async exportData(): Promise<any> {
|
async exportData(): Promise<Record<string, unknown>> {
|
||||||
const { data } = await api.get("/users/me/export");
|
const { data } = await api.get<Record<string, unknown>>("/users/me/export");
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user