-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.d.ts
102 lines (92 loc) · 1.72 KB
/
typings.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
export interface Genre {
id: number
name: string
}
export interface CategoryTypes {
id: number;
name: string;
}
export interface Movie {
title: string
backdrop_path: string
media_type?: string
release_date?: string
first_air_date: string
genre_ids: number[]
id: number
name: string
origin_country: string[]
original_language: string
original_name: string
overview: string
popularity: number
poster_path: string
vote_average: number
vote_count: number
}
export interface Element {
type:
| 'Bloopers'
| 'Featurette'
| 'Behind the Scenes'
| 'Clip'
| 'Trailer'
| 'Teaser'
}
export interface Details {
adult: boolean
backdrop_path: string
belongs_to_collection: null
budget: number
genres: Genre[]
homepage: string
id: number
imdb_id: string
original_language: string
original_title: string
overview: string
popularity: number
poster_path: string
production_companies: ProductionCompany[]
production_countries: ProductionCountry[]
release_date: string
revenue: number
runtime: number
spoken_languages: SpokenLanguage[]
status: string
tagline: string
title: string
video: boolean
videos: Videos
vote_average: number
vote_count: number
}
export interface ProductionCompany {
id: number
logo_path: string
name: string
origin_country: string
}
export interface ProductionCountry {
iso_3166_1: string
name: string
}
export interface SpokenLanguage {
iso_639_1: string
name: string
}
export interface Videos {
results: Result[]
}
export interface Result {
id: string
iso_639_1: string
iso_3166_1: string
key: string
name: string
official: boolean
published_at: string
site: string
size: number
type: string
}