-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.d.ts
42 lines (40 loc) · 892 Bytes
/
types.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
type MemeResponse = {
success: boolean;
data: {
memes: Meme[]
}
}
type Meme = {
"id": string,
"name": string,
"url": string,
"width": number,
"height": number,
"box_count": number,
"captions": number
}
type MemeTextSetting = {
text: string
width: number
height: number
color: string
isAllCaps: boolean
isBold: boolean
isItalic: boolean
textDecoration: "shadow" | "outline" | "none"
outlineColor: string
outlineWidth: number
fontSize: number
fontFamily: string
textAlign: "left" | "center" | "right"
verticalAlign: "top" | "center" | "bottom"
opacity: number
}
type MemeTextSettings = {
id: string
settings: MemeTextSetting[]
}
type SettingsContext = {
memeSettings: MemeTextSettings | null,
setMemeSettings: Dispatch<SetStateAction<MemeTextSettings | null>>
} | null