updated list details page to use composition API and typescript
This commit is contained in:
parent
823bef5604
commit
12937783f8
3 changed files with 172 additions and 102 deletions
14
src/types/movie.ts
Normal file
14
src/types/movie.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
export type Movie = {
|
||||
id: number;
|
||||
title: string;
|
||||
added_by: number;
|
||||
imdb_id: string;
|
||||
year: number;
|
||||
critic_score: string;
|
||||
genre: string;
|
||||
director: string;
|
||||
actors: string;
|
||||
plot: string;
|
||||
poster: string;
|
||||
last_watched: string;
|
||||
};
|
|
@ -1,7 +1,10 @@
|
|||
import type { Movie } from "~/types/movie";
|
||||
|
||||
export type MovieList = {
|
||||
id: number;
|
||||
name: string;
|
||||
public: boolean;
|
||||
owner: number;
|
||||
movie_count: number;
|
||||
movies: Movie[];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue