/
types.ts
52 lines (49 loc) · 1.01 KB
/
types.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
41
42
43
44
45
46
47
48
49
50
51
52
export interface Top250Movies {
errorMessage: string;
items: Movie[];
}
interface Movie {
// max.haveSexWith(typeScript)
crew: string;
fullTitle: string;
id: string;
imDbRating: string;
imDbRatingCount: string;
image: string;
rank: string;
title: string;
year: string;
}
export interface ComingSoon {
errorMessage: string;
items: ComingSoonItem[];
}
interface ComingSoonItem {
contentRating: string;
directorList: ComingSoonDirectorList[];
directors: string;
fullTitle: string;
genreList: ComingSoonOtherList[];
genres: string;
id: string;
imDbRating: string;
imDbRatingCount: string;
image: string;
metacriticRating: string;
plot: string;
releaseState: string;
runtimeMins: string;
runtimeStr: string;
starList: ComingSoonOtherList[];
stars: string;
title: string;
year: string;
}
interface ComingSoonDirectorList {
id: string;
name: string;
}
interface ComingSoonOtherList {
key: string;
value: string;
}