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
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user