-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
64 lines (57 loc) · 1001 Bytes
/
types.d.ts
File metadata and controls
64 lines (57 loc) · 1001 Bytes
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
interface MysqlOpts {
host: string
user: string
password: string
database: string
port: number
connectionLimit: number
}
type db = import('@core/Db').default
type Bindings = {}
type Variables = {
user: User
id: number
}
interface User {
id: number
email: string
roles: string[]
}
interface SearchFilters {
string?: string
categories?: number[]
countries?: number[]
sources?: number[]
users?: number[]
page?: number
favoriteId?: number
}
interface Location {
id: string
lat: number
lon: number
name: string
image: string
categoryName: string
categoryIcon: string
categoryColor: string
fids: string[]
}
interface LocationFilters {
categories: { [key: string]: string }
countries: { [key: string]: string }
sources?: { [key: string]: string }
}
interface Friend {
id: string
username: string
image: string
}
interface Favorite {
id: string
name: string
share: boolean
disabled: boolean
count: number
users?: string[]
}