Skip to content

Commit

Permalink
[RSS] Fix: update RSSFeedItem type to comply with strictest tscon…
Browse files Browse the repository at this point in the history
…fig (#6614)

* fix RSSFeedItem type for `strictest` tsconfig

* add .changeset

---------

Co-authored-by: Erika <[email protected]>
  • Loading branch information
aivarsliepa and Princesseuh authored Mar 30, 2023
1 parent 4b07731 commit b1b9b13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-snails-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/rss': patch
---

Fixes `RSSOptions` type error when using `strictest` Typescript tsconfig
2 changes: 1 addition & 1 deletion packages/astro-rss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type RSSFeedItem = {
/** Link to item */
link: string;
/** Full content of the item. Should be valid HTML */
content?: string;
content?: string | undefined;
/** Title of item */
title: z.infer<typeof rssSchema>['title'];
/** Publication date of item */
Expand Down

0 comments on commit b1b9b13

Please sign in to comment.