Skip to content

Commit 2ea1d8f

Browse files
authored
Merge pull request #251 from fivecar/readme_typescript_example_fix
fix: correct Typescript example to include `new Parser()`
2 parents eb8a4ee + b050db4 commit 2ea1d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const parser: Parser<CustomFeed, CustomItem> = new Parser({
5959
});
6060

6161
(async () => {
62-
62+
const parser = new Parser();
6363
const feed = await parser.parseURL('https://www.reddit.com/.rss');
6464
console.log(feed.title); // feed will have a `foo` property, type as a string
6565

0 commit comments

Comments
 (0)