You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MovieFinder/components/Movie.tsx

32 lines
564 B

class Movie {
id: string
original_title: string
poster_path: string
runtime: number
vote_average: number
constructor(id: string, original_title: string, poster_path: string, runtime: number, vote_average: number) {
this.id = id;
this.original_title = original_title;
this.poster_path = poster_path;
this.runtime = runtime;
this.vote_average = vote_average;
}
}
export interface Cast {
cast: string
}
export interface People {
name: string
job: string
}
export default Movie;