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 {
|
export interface BlocklistItem {
|
||||||
tmdbId: number;
|
tmdbId: number;
|
||||||
mediaType: 'movie' | 'tv';
|
mediaType: 'movie' | 'tv' | 'music' | 'book';
|
||||||
title?: string;
|
title?: string;
|
||||||
createdAt?: Date;
|
createdAt?: Date;
|
||||||
user?: User;
|
user?: User;
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ type Sort = 'added' | 'modified';
|
|||||||
|
|
||||||
type SortDirection = 'asc' | 'desc';
|
type SortDirection = 'asc' | 'desc';
|
||||||
|
|
||||||
type MediaType = 'all' | 'movie' | 'tv';
|
type MediaType = 'all' | 'movie' | 'tv' | 'music' | 'book';
|
||||||
|
|
||||||
const RequestList = () => {
|
const RequestList = () => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|||||||
Reference in New Issue
Block a user