-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.d.ts
40 lines (37 loc) · 855 Bytes
/
models.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
type Movie = {
Title: string;
Year: string;
imdbID: string;
Type: string;
Poster: string;
};
interface MovieDetails extends Movie {
Realeased: string;
Runtime: string;
Genre: string;
Director: string;
Writer: string;
Actors: string;
Plot: string;
Language: string;
Country: string;
Awards: string;
Poster: string;
imdbID: "tt0094712";
DVD: "N/A";
BoxOffice: string;
Production: string;
Website: "N/A";
}
type ContextDefault = {
addNomination: (id: string) => void;
removeNomination: (id: string) => void;
nominationList: Movie[] | null;
nominationLoading: boolean;
searchMovies: (params: SearchParams) => void;
movieList: Movie[] | null;
movieLoading: boolean;
getNominationList: VoidFunction;
resetMovieList: VoidFunction;
};
type SearchParams = { s: string; type?: string; year?: string };