Home
/
rss-reader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
extract the parser api to a base class
[rss-reader.git]
/
src
/
parsers
/
base.ts
diff --git
a/src/parsers/base.ts
b/src/parsers/base.ts
index 64aaa8b60ff894cace3f5afc1b11a79fedbb503c..acf9a250037364fec06eff3cc8976a9f687113f2 100644
(file)
--- a/
src/parsers/base.ts
+++ b/
src/parsers/base.ts
@@
-11,3
+11,7
@@
export type Feed = {
link: string;
items: FeedItem[];
};
+
+export abstract class BaseParser {
+ abstract parse(url: string): Promise<Feed>;
+}