[RSS] Fix: update RSSFeedItem type to comply with strictest tsconfig (#6614)

* fix RSSFeedItem type for `strictest` tsconfig

* add .changeset

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
This commit is contained in:
Aivars Liepa 2023-03-30 11:25:36 +02:00 committed by GitHub
parent 4b077318fb
commit b1b9b1390f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/rss': patch
---
Fixes `RSSOptions` type error when using `strictest` Typescript tsconfig

View file

@ -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 */