Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | import type { Node } from "domhandler";
|
---|
2 | export declare type FeedItemMediaMedium = "image" | "audio" | "video" | "document" | "executable";
|
---|
3 | export declare type FeedItemMediaExpression = "sample" | "full" | "nonstop";
|
---|
4 | export interface FeedItemMedia {
|
---|
5 | medium: FeedItemMediaMedium | undefined;
|
---|
6 | isDefault: boolean;
|
---|
7 | url?: string;
|
---|
8 | fileSize?: number;
|
---|
9 | type?: string;
|
---|
10 | expression?: FeedItemMediaExpression;
|
---|
11 | bitrate?: number;
|
---|
12 | framerate?: number;
|
---|
13 | samplingrate?: number;
|
---|
14 | channels?: number;
|
---|
15 | duration?: number;
|
---|
16 | height?: number;
|
---|
17 | width?: number;
|
---|
18 | lang?: string;
|
---|
19 | }
|
---|
20 | export interface FeedItem {
|
---|
21 | id?: string;
|
---|
22 | title?: string;
|
---|
23 | link?: string;
|
---|
24 | description?: string;
|
---|
25 | pubDate?: Date;
|
---|
26 | media: FeedItemMedia[];
|
---|
27 | }
|
---|
28 | export interface Feed {
|
---|
29 | type: string;
|
---|
30 | id?: string;
|
---|
31 | title?: string;
|
---|
32 | link?: string;
|
---|
33 | description?: string;
|
---|
34 | updated?: Date;
|
---|
35 | author?: string;
|
---|
36 | items: FeedItem[];
|
---|
37 | }
|
---|
38 | /**
|
---|
39 | * Get the feed object from the root of a DOM tree.
|
---|
40 | *
|
---|
41 | * @param doc - The DOM to to extract the feed from.
|
---|
42 | * @returns The feed.
|
---|
43 | */
|
---|
44 | export declare function getFeed(doc: Node[]): Feed | null;
|
---|
45 | //# sourceMappingURL=feeds.d.ts.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.