-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
44 lines (36 loc) · 943 Bytes
/
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
export interface Background {
id: string,
uri: string,
blurHash: string,
};
export interface Backgrounds {
data: Array<Background>,
selectedIndex: number,
isCurrentBackgroundLoaded: boolean
}
export interface Error {
statusCode: number;
message: string;
isResolved?: boolean
}
export interface Quote {
id: number,
author: string,
quote: string,
isItalics: boolean,
isBold: boolean,
isUnderlined: boolean,
topPercentage: number,
leftPercentage: number,
fontFamily: string
};
export interface Quotes {
data: Array<Quote>,
selectedIndex: number
}
export const randomButtonText = 'random!';
export const OK_STATUS = 200;
export const INTERNAL_ERROR_STATUS = 500;
export const INTERNAL_ERROR_MESSAGE = 'whoa, an internal (possibly API) error happened!';
export const LOGIC_ERROR_STATUS = -1;
export const LOGIC_ERROR_MESSAGE = 'whoa, a logic error happened!';