fix: make sure series/movies endpoints use correct type
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
export type Movie = {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
type: "movie";
|
||||
tags: string[];
|
||||
meta: {
|
||||
date: Date;
|
||||
tmdbId?: number;
|
||||
keywords?: string[];
|
||||
image: string;
|
||||
thumbnail?: string;
|
||||
average?: string;
|
||||
author: string;
|
||||
rating: number;
|
||||
_type: "Review";
|
||||
tmdbId?: number;
|
||||
link?: string;
|
||||
author?: {
|
||||
_type: "Person";
|
||||
name?: string;
|
||||
};
|
||||
datePublished?: string;
|
||||
reviewRating?: {
|
||||
bestRating?: number;
|
||||
worstRating?: number;
|
||||
ratingValue?: number;
|
||||
};
|
||||
reviewBody?: string;
|
||||
itemReviewed?: {
|
||||
name?: string;
|
||||
};
|
||||
keywords?: string[];
|
||||
image?: string;
|
||||
};
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
export type Series = {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
type: "series";
|
||||
tags: string[];
|
||||
meta: {
|
||||
date: Date;
|
||||
image: string;
|
||||
author: string;
|
||||
tmdbId?: number;
|
||||
rating: number;
|
||||
average?: string;
|
||||
thumbnail?: string;
|
||||
done?: boolean;
|
||||
};
|
||||
};
|
||||
import { Movie } from "./movies.ts";
|
||||
|
||||
export type Series = Movie;
|
||||
|
||||
Reference in New Issue
Block a user