1234567891011121314151617181920212223242526272829303132333435363738 |
- import DomHandler, { DomHandlerOptions } from "domhandler";
- import { ParserOptions } from "./Parser";
- interface FeedItem {
- id?: string;
- title?: string;
- link?: string;
- description?: string;
- pubDate?: Date;
- }
- interface Feed {
- type?: string;
- id?: string;
- title?: string;
- link?: string;
- description?: string;
- updated?: Date;
- author?: string;
- items?: FeedItem[];
- }
- export declare class FeedHandler extends DomHandler {
- feed?: Feed;
-
- constructor(callback?: ((error: Error | null) => void) | DomHandlerOptions, options?: DomHandlerOptions);
- onend(): void;
- }
- export declare function parseFeed(feed: string, options?: ParserOptions & DomHandlerOptions): Feed | undefined;
- export {};
|