chore: resolve lint warnings with targeted type and rule fixes

This commit is contained in:
2026-02-28 11:59:30 +01:00
parent 1a88efc46b
commit 612a70ffbe
35 changed files with 107 additions and 63 deletions

View File

@@ -10,7 +10,8 @@ export function findHttpStatus(error: unknown): number | null {
// Si c'est une erreur HTTP, récupérer le status
if (error.code === ERROR_CODES.KOMGA.HTTP_ERROR) {
return (error.params as any)?.status || null;
const params = error.params as { status?: number } | undefined;
return params?.status || null;
}
// Sinon, chercher récursivement dans originalError