[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:
parent
4b077318fb
commit
b1b9b1390f
2 changed files with 6 additions and 1 deletions
5
.changeset/happy-snails-ring.md
Normal file
5
.changeset/happy-snails-ring.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/rss': patch
|
||||
---
|
||||
|
||||
Fixes `RSSOptions` type error when using `strictest` Typescript tsconfig
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue