-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.d.ts
126 lines (118 loc) · 2.08 KB
/
index.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
type TNavigation = {
categories: TCategory[]
pages: TPage[]
}
type TToast = {
id: number
content: string
}
type TArticle = {
id: number
title: string
slug: string
author: TContributor
content: string
category: TCategory
description: string
published_at: Date | string
created_at: Date | string
updated_at: Date | string
cover: TStrapiImage
}
type TCategory = {
id: number
title: string
slug: string
description: string
published_at: Date | string
created_at: Date | string
updated_at: Date | string
cover: TStrapiImage
}
type TContributor = {
id: number
name: string
slug: string
role: string
published_at: Date | string
created_at: Date | string
updated_at: Date | string
urls?: {
id: number
twitter?: string
instagram?: string
facebook?: string
linkedin?: string
}
featured?: {
id: number
description: string
profile_image: TStrapiImage
}
}
type TGlobal = {
id: number
site_name: string
description: string
site_url: string
published_at: Date
created_at: Date
updated_at: Date
social_urls?: {
id: number
twitter?: string
instagram?: string
facebook?: string
youtube?: string
linkedin?: string
contact_email?: string
}
cover: TStrapiImage
}
type TPage = {
id: number
title: string
slug: string
description: string
content: string
published_at: Date
created_at: Date
updated_at: Date
cover?: TStrapiImage
}
// Strapi Types
type TStrapiImage = {
id: number
name: string
alternativeText: string
caption: string
width: number
height: number
formats: {
thumbnail?: TStrapiImageFormat
large?: TStrapiImageFormat
medium?: TStrapiImageFormat
small?: TStrapiImageFormat
}
hash: string
ext: string
mime: string
size: number
url: string
previewUrl: null
provider: string
provider_metadata: null
created_at: Date | string
updated_at: Date | string
}
type TStrapiImageFormat = {
name: string
hash: string
ext: string
mime: string
width: number
height: number
size: number
path: null
url: string
}