source: imaps-frontend/node_modules/htmlparser2/lib/FeedHandler.d.ts@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.6 KB
Line 
1import DomHandler, { DomHandlerOptions } from "domhandler";
2import { ParserOptions } from "./Parser";
3declare enum FeedItemMediaMedium {
4 image = 0,
5 audio = 1,
6 video = 2,
7 document = 3,
8 executable = 4
9}
10declare enum FeedItemMediaExpression {
11 sample = 0,
12 full = 1,
13 nonstop = 2
14}
15interface FeedItemMedia {
16 url?: string;
17 fileSize?: number;
18 type?: string;
19 medium: FeedItemMediaMedium | undefined;
20 isDefault: boolean;
21 expression?: FeedItemMediaExpression;
22 bitrate?: number;
23 framerate?: number;
24 samplingrate?: number;
25 channels?: number;
26 duration?: number;
27 height?: number;
28 width?: number;
29 lang?: string;
30}
31interface FeedItem {
32 id?: string;
33 title?: string;
34 link?: string;
35 description?: string;
36 pubDate?: Date;
37 media?: FeedItemMedia[];
38}
39interface Feed {
40 type?: string;
41 id?: string;
42 title?: string;
43 link?: string;
44 description?: string;
45 updated?: Date;
46 author?: string;
47 items?: FeedItem[];
48}
49export declare class FeedHandler extends DomHandler {
50 feed?: Feed;
51 /**
52 *
53 * @param callback
54 * @param options
55 */
56 constructor(callback?: ((error: Error | null) => void) | DomHandlerOptions, options?: DomHandlerOptions);
57 onend(): void;
58}
59/**
60 * Parse a feed.
61 *
62 * @param feed The feed that should be parsed, as a string.
63 * @param options Optionally, options for parsing. When using this option, you should set `xmlMode` to `true`.
64 */
65export declare function parseFeed(feed: string, options?: ParserOptions & DomHandlerOptions): Feed | undefined;
66export {};
67//# sourceMappingURL=FeedHandler.d.ts.map
Note: See TracBrowser for help on using the repository browser.