-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
115 lines (114 loc) · 2.54 KB
/
global.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
import { EdgeConfigClient } from '@vercel/edge-config';
import { MDXRemoteSerializeResult } from 'next-mdx-remote';
declare global {
namespace globalThis {
var edgeConfigClient: EdgeConfigClient;
}
namespace Gists {
interface Gist {
createdAt: string;
description: string;
fileCount: number;
files: { [x: string]: GistFile };
id: string;
name: string;
public: boolean;
updatedAt: string;
url: string;
}
interface GistFile {
content: string;
filename: string;
language: string;
raw_url: string;
size: number;
truncated: boolean;
type: string;
}
interface GistResponse {
created_at: string;
description: string;
files: { [x: string]: GistFile };
html_url: string;
id: string;
public: boolean;
updated_at: string;
url: string;
}
interface GistsResponse extends Array<GistResponse> {}
}
namespace Blog {
interface Profile {
avatar: string;
author: string;
follow: string;
twitter: string;
github: string;
codepen: string;
bilibili: string;
v2ex: string;
juejin: string;
}
interface Article {
createdat: string;
description: string;
filecount: number;
files: string[];
id: string;
name: string;
public: boolean;
updatedat: string;
url: string;
}
interface Articles extends Array<Article> {}
interface Post {
id: string;
title: string;
cover: string[];
public: boolean;
filecount: number;
categories: string[];
tags: string[];
created: string;
updated: string;
}
interface Posts extends Array<Post> {}
interface Comment {
url: string;
id: number;
user: {
login: string;
id: number;
avatar_url: string;
type: string;
site_admin: boolean;
};
author_association: string;
created_at: string;
updated_at: string;
body: string;
}
interface Comments extends Array<Comment> {}
interface About {
contact: {
twitter: string;
github: string;
codepen: string;
v2ex: string;
reddit: string;
email: string;
};
site: {
description: string;
features: string[];
link: string;
};
technology: string[];
}
interface Project {
title: string;
description: string;
}
interface Projects extends Array<Project> {}
}
}