-
Notifications
You must be signed in to change notification settings - Fork 1
/
type.d.ts
75 lines (68 loc) · 1.13 KB
/
type.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
import { ElementNode } from "@graphcms/rich-text-types";
type Technology = {
id: string;
title: string;
category: string;
tech: string;
img: string;
color: string;
};
type Snippet = {
id: string;
title: string;
author: Author;
date: string;
category: string;
topic: string;
tech: string;
description: string;
img: { url: string };
subTitle: string;
code: { json: ElementNode };
slug: string;
video: { url: string };
};
type Article = {
id: string;
createdAt: Date;
title: string;
image: { url: string };
author: Author;
level: string;
slug: string;
url: string;
shortDescription: string;
content: { json: ElementNode };
date: Date;
};
type Author = {
name: string;
photo: { url: string };
bio: string;
description: string;
linkedIn: string;
twitter: string;
instagram: string;
github: string;
youtube: string;
discord: string;
articles: Article[];
snippets: Snippet[];
};
type Docs = {
id: number;
title: string;
category: string;
links: Docs[];
name: string;
url: string;
};
type PdfFile = {
id: number;
file: string;
image: { url: string };
};
type Category = {
id: number;
name: string;
};