-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype.ts
48 lines (43 loc) · 1 KB
/
type.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
export interface Data {
name: string;
age: number;
}
export interface Response {
results: Results;
}
export interface Results {
page: number;
results: Result[];
total_pages: number;
total_results: number;
}
export interface Result {
genre_ids: number[];
original_language: OriginalLanguage;
original_title?: string;
poster_path: string;
video?: boolean;
vote_average: number;
vote_count: number;
overview: string;
id: number;
title?: string;
release_date?: Date;
adult?: boolean;
backdrop_path: string;
popularity: number;
media_type: MediaType;
name?: string;
original_name?: string;
first_air_date?: Date;
origin_country?: string[];
}
export enum MediaType {
Movie = "movie",
Tv = "tv",
}
export enum OriginalLanguage {
En = "en",
Es = "es",
Ja = "ja",
}