Home
/
rss-reader.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
extract the parser api to a base class
[rss-reader.git]
/
src
/
parsers
/
base.ts
1
export type FeedItem = {
2
title: string;
3
link: string;
4
guid: string;
5
pubDate: number;
6
content: string;
7
}
8
9
export type Feed = {
10
title: string;
11
link: string;
12
items: FeedItem[];
13
};
14
15
export abstract class BaseParser {
16
abstract parse(url: string): Promise<Feed>;
17
}