extract the parser api to a base class
[rss-reader.git] / src / parsers / base.ts
index 64aaa8b60ff894cace3f5afc1b11a79fedbb503c..acf9a250037364fec06eff3cc8976a9f687113f2 100644 (file)
@@ -11,3 +11,7 @@ export type Feed = {
   link: string;
   items: FeedItem[];
 };
+
+export abstract class BaseParser {
+  abstract parse(url: string): Promise<Feed>;
+}