-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
88 lines (77 loc) · 1.65 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
declare module "markdown-it-task-lists";
declare module "markdown-it-footnote";
declare module "markdown-it-abbr";
declare module "markdown-it-deflist";
declare module "markdown-it-ins";
declare module "markdown-it-mark";
declare module "markdown-it-sub";
declare module "markdown-it-sup";
declare module "colorthief";
declare module "markdown-it-anchor";
declare module "markdown-it-table-of-contents";
declare module Blog {
export type FootLink = {
name: string;
id?: string;
url: string;
icon: string;
};
export interface Contact {
[key: string]: FootLink;
}
export interface Profile {
title: string;
subtitle: string;
thumbnail: string;
themeColor?: string;
}
export type Comment = {
repo?: string;
};
export type Config = {
siteURL: string;
profile: Profile;
contact: Contact;
comment: Comment;
buildBasePath?: string;
algolia: {
appId: string;
adminKey: string;
searchNameSpace: string;
};
};
export interface Post {
id: string;
filename: string;
pathname: string;
content: {
title: string;
thumbnail: string;
abstract: string;
tags: string[];
date: Date;
};
}
interface ArticleBody extends Post {
articleBody: string;
category: CategoryPost;
themeColor: string;
}
export interface BasicInfo {
title: string;
introduce: string;
}
export type CategoryPost = {
[key: string]: Post[];
};
export type TagPost = {
[key: string]: Post[];
};
export type Search = {
ObjectID: string;
title: string;
tags: string[];
abstract: string;
path: string;
};
}