-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
35 lines (33 loc) · 796 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
export interface Post {
_id: string;
author: { _ref: string };
body: { children: { text: string }[] }[];
mainImage: { asset: { _ref: string } };
categories: { _ref: string; key: string }[];
slug: { current: string };
title: string;
name?: string;
publishedAt: string;
createdAt: string;
imageUrl: string;
}
export interface Project {
_id: string;
title: string;
slug: { current: string };
mainImage: { asset: { _ref: string } };
publishedAt: string;
body: { children: { text: string }[] }[];
github: string;
demo: string;
imageUrl: string;
}
export interface Link {
_id: string;
title: string;
slug: { current: string };
mainImage: { asset: { _ref: string } };
publishedAt: string;
body: { children: { text: string }[] }[];
url?: string;
}