Refactor: Update type safety status

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 17:19:19 +00:00
parent 81fccdc4d0
commit e580f1f4b4
21 changed files with 55 additions and 49 deletions

View File

@@ -107,7 +107,7 @@ export function useEntityVersions(entityType: EntityType, entityId: string) {
setCurrentVersion(versionsWithProfiles.find(v => v.is_current) || null);
setLoading(false);
}
} catch (error) {
} catch (error: unknown) {
const errorMsg = getErrorMessage(error);
console.error('Error fetching versions:', errorMsg);
@@ -139,7 +139,7 @@ export function useEntityVersions(entityType: EntityType, entityId: string) {
if (error) throw error;
return data;
} catch (error) {
} catch (error: unknown) {
const errorMsg = getErrorMessage(error);
console.error('Error comparing versions:', errorMsg);
if (isMountedRef.current) {
@@ -171,7 +171,7 @@ export function useEntityVersions(entityType: EntityType, entityId: string) {
await fetchVersions();
}
return data;
} catch (error) {
} catch (error: unknown) {
const errorMsg = getErrorMessage(error);
console.error('Error rolling back version:', errorMsg);
if (isMountedRef.current) {
@@ -193,7 +193,7 @@ export function useEntityVersions(entityType: EntityType, entityId: string) {
if (channelRef.current) {
try {
supabase.removeChannel(channelRef.current);
} catch (error) {
} catch (error: unknown) {
console.error('Error removing previous channel:', error);
} finally {
channelRef.current = null;