From 9a63f4a4dd899f47306d0b831e973a3714e43e9e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Apr 2026 21:50:03 -0500 Subject: [PATCH] Fix TypeScript type errors for new media types - Update BlocklistItem interface to accept music/book media types - Update RequestList MediaType union to include music/book --- server/interfaces/api/blocklistInterfaces.ts | 2 +- src/components/RequestList/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/interfaces/api/blocklistInterfaces.ts b/server/interfaces/api/blocklistInterfaces.ts index 58e3ebe4..85341b69 100644 --- a/server/interfaces/api/blocklistInterfaces.ts +++ b/server/interfaces/api/blocklistInterfaces.ts @@ -3,7 +3,7 @@ import type { PaginatedResponse } from '@server/interfaces/api/common'; export interface BlocklistItem { tmdbId: number; - mediaType: 'movie' | 'tv'; + mediaType: 'movie' | 'tv' | 'music' | 'book'; title?: string; createdAt?: Date; user?: User; diff --git a/src/components/RequestList/index.tsx b/src/components/RequestList/index.tsx index a5e21f23..3892f0c0 100644 --- a/src/components/RequestList/index.tsx +++ b/src/components/RequestList/index.tsx @@ -51,7 +51,7 @@ type Sort = 'added' | 'modified'; type SortDirection = 'asc' | 'desc'; -type MediaType = 'all' | 'movie' | 'tv'; +type MediaType = 'all' | 'movie' | 'tv' | 'music' | 'book'; const RequestList = () => { const router = useRouter();