UNPKG

1.2 kBTypeScriptView Raw
1export interface Item {
2 title: string;
3 id?: string;
4 link: string;
5 date: Date;
6 description?: string;
7 content?: string;
8 category?: Category[];
9 guid?: string;
10 image?: string | Enclosure;
11 audio?: string | Enclosure;
12 video?: string | Enclosure;
13 enclosure?: Enclosure;
14 author?: Author[];
15 contributor?: Author[];
16 published?: Date;
17 copyright?: string;
18 extensions?: Extension[];
19}
20export interface Enclosure {
21 url: string;
22 type?: string;
23 length?: number;
24 title?: string;
25 duration?: number;
26}
27export interface Author {
28 name?: string;
29 email?: string;
30 link?: string;
31}
32export interface Category {
33 name?: string;
34 domain?: string;
35 scheme?: string;
36 term?: string;
37}
38export interface FeedOptions {
39 id: string;
40 title: string;
41 updated?: Date;
42 generator?: string;
43 language?: string;
44 ttl?: number;
45 feed?: string;
46 feedLinks?: any;
47 hub?: string;
48 docs?: string;
49 author?: Author;
50 link?: string;
51 description?: string;
52 image?: string;
53 favicon?: string;
54 copyright: string;
55}
56export interface Extension {
57 name: string;
58 objects: any;
59}