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,6 +10,7 @@ import { AuthProvider } from "@/components/providers/AuthProvider";
import { cookies } from "next/headers";
import { defaultPreferences } from "@/types/preferences";
import type { UserPreferences } from "@/types/preferences";
import type { KomgaLibrary, KomgaSeries } from "@/types/komga";
import logger from "@/lib/logger";
const inter = Inter({
@@ -73,8 +74,8 @@ export default async function RootLayout({ children }: { children: React.ReactNo
let preferences: UserPreferences = defaultPreferences;
let userIsAdmin = false;
let libraries: any[] = [];
let favorites: any[] = [];
let libraries: KomgaLibrary[] = [];
let favorites: KomgaSeries[] = [];
try {
const [preferencesData, isAdminCheck, librariesData, favoritesData] = await Promise.allSettled([