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:
Mathis HERRIOT
2026-01-29 16:09:00 +01:00
parent 484b775923
commit e2146f4502

View File

@@ -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;
}, },
}; };