-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
84 lines (75 loc) · 1.43 KB
/
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
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
export type SiteConfig = {
author: string;
title: string;
description: string;
lang: string;
ogLocale: string;
date: {
locale: string | string[] | undefined;
options: Intl.DateTimeFormatOptions;
};
webmentions?: {
link: string;
pingback?: string;
};
};
export type PaginationLink = {
url: string;
text?: string;
srLabel?: string;
};
export type SiteMeta = {
title: string;
description?: string;
ogImage?: string | undefined;
articleDate?: string | undefined;
};
/** Webmentions */
export type WebmentionsFeed = {
type: string;
name: string;
children: WebmentionsChildren[];
};
export type WebmentionsCache = {
lastFetched: string | null;
children: WebmentionsChildren[];
};
export type WebmentionsChildren = {
type: string;
author: Author | null;
url: string;
published?: string | null;
"wm-received": string;
"wm-id": number;
"wm-source": string;
"wm-target": string;
"wm-protocol": string;
syndication?: string[] | null;
content?: Content | null;
"mention-of": string;
"wm-property": string;
"wm-private": boolean;
rels?: Rels | null;
name?: string | null;
photo?: string[] | null;
summary?: Summary | null;
};
export type Author = {
type: string;
name: string;
photo: string;
url: string;
};
export type Content = {
"content-type": string;
value: string;
html: string;
text: string;
};
export type Rels = {
canonical: string;
};
export type Summary = {
"content-type": string;
value: string;
};