-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.ts
56 lines (50 loc) · 926 Bytes
/
search.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
export interface WallpaperPagination {
data: SearchWallpaper[];
meta: Meta;
}
export interface SearchWallpaper {
id: string;
url: string;
short_url: string;
views: number;
favorites: number;
source: string;
purity: Purity;
category: Category;
dimension_x: number;
dimension_y: number;
resolution: string;
ratio: string;
file_size: number;
file_type: FileType;
created_at: string;
colors: string[];
path: string;
thumbs: Thumbs;
}
export enum Category {
Anime = 'anime',
General = 'general',
People = 'people',
}
export enum FileType {
ImageJPEG = 'image/jpeg',
ImagePNG = 'image/png',
}
export enum Purity {
Sfw = 'sfw',
Sketchy = 'sketchy',
Nsfw = 'nsfw',
}
export interface Thumbs {
large: string;
original: string;
small: string;
}
export interface Meta {
current_page: number;
last_page: number;
per_page: number;
total: number;
query: null;
}