diff --git a/.changeset/tricky-mirrors-carry.md b/.changeset/tricky-mirrors-carry.md new file mode 100644 index 0000000000..f137210cbf --- /dev/null +++ b/.changeset/tricky-mirrors-carry.md @@ -0,0 +1,5 @@ +--- +'@astrojs/rss': patch +--- + +Fixes an issue where the `pagesGlobToRssItems` returned an incorrect type for `items` diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index f2cb37c86b..84cdad0d90 100644 --- a/packages/astro-rss/src/index.ts +++ b/packages/astro-rss/src/index.ts @@ -32,13 +32,13 @@ export type RSSOptions = { export type RSSFeedItem = { /** Link to item */ - link: z.infer['link']; + link?: z.infer['link']; /** Full content of the item. Should be valid HTML */ content?: z.infer['content']; /** Title of item */ - title: z.infer['title']; + title?: z.infer['title']; /** Publication date of item */ - pubDate: z.infer['pubDate']; + pubDate?: z.infer['pubDate']; /** Item description */ description?: z.infer['description']; /** Append some other XML-valid data to this item */