-
Notifications
You must be signed in to change notification settings - Fork 6
/
types.ts
100 lines (91 loc) · 2.3 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
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
export type GiphyRating = 'y' | 'g' | 'pg' | 'pg-13' | 'r';
export interface GiphyGif {
type: string;
id: string;
slug: string;
url?: string;
bitly_url: string;
bitly_gif_url?: string;
embed_url: string;
username: string;
source: string;
rating: GiphyRating;
content_url: string;
source_tld?: string;
source_post_url: string;
update_datetime: Date;
create_datetime: Date;
import_datetime: Date;
trending_datetime: Date;
images: GiphyImages;
title: string;
}
export interface GiphyImagePreviewGif {
url?: string;
width?: string | number;
height?: string | number;
}
export interface GiphyImagePreview {
mp4: string;
mp4_size?: string | number;
width?: string | number;
height?: string | number;
}
export interface GiphyImageLooping {
url?: string;
}
export interface GiphyImageOriginalStill {
url?: string;
width?: string | number;
height?: string | number;
}
export interface GiphyImageOriginal {
url?: string;
width?: string | number;
height?: string | number;
frames?: string;
mp4?: string;
mp4_size?: string | number;
webp?: string;
webp_size?: string | number;
}
export interface GiphyImageDownsized {
url?: string;
width?: string | number;
height?: string | number;
size?: string;
mp4?: string;
mp4_size?: string;
}
export interface GiphyImageFixedSize {
url?: string;
width?: string | number;
height?: string | number;
size?: string;
mp4?: string;
mp4_size?: string;
webp?: string;
webp_size?: string;
}
export interface GiphyImages {
preview_gif: GiphyImagePreviewGif;
preview: GiphyImagePreview;
looping: GiphyImageLooping;
original_still: GiphyImageOriginalStill;
original: GiphyImageOriginal;
downsized: GiphyImageDownsized;
downsized_still: GiphyImageDownsized;
downsized_large: GiphyImageDownsized;
downsized_medium: GiphyImageDownsized;
downsized_small: GiphyImageDownsized;
fixed_height_small: GiphyImageFixedSize;
fixed_height_small_still: GiphyImageFixedSize;
fixed_width_small_still: GiphyImageFixedSize;
fixed_width_downsampled: GiphyImageFixedSize;
fixed_width_small: GiphyImageFixedSize;
fixed_width_still: GiphyImageFixedSize;
fixed_width: GiphyImageFixedSize;
fixed_height_downsampled: GiphyImageFixedSize;
fixed_height_still: GiphyImageFixedSize;
fixed_height: GiphyImageFixedSize;
}