-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathtype.ts
More file actions
35 lines (26 loc) · 663 Bytes
/
type.ts
File metadata and controls
35 lines (26 loc) · 663 Bytes
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 type Result = {
content: string;
title?: string;
url: string;
website?: string;
};
export interface ParserResponse {
/** author metadata */
byline: string;
/** HTML string of processed article content */
content: string;
/** content direction */
dir: string;
/** article description, or short excerpt from the content */
excerpt: string;
/** content language */
lang: string;
/** length of an article, in characters */
length: number;
/** name of the site */
siteName: string;
/** text content of the article, with all the HTML tags removed */
textContent: string;
/** article title */
title: string;
}