Skip to content

Commit b1b9b13

Browse files
[RSS] Fix: update RSSFeedItem type to comply with strictest tsconfig (#6614)
* fix RSSFeedItem type for `strictest` tsconfig * add .changeset --------- Co-authored-by: Erika <[email protected]>
1 parent 4b07731 commit b1b9b13

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/happy-snails-ring.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/rss': patch
3+
---
4+
5+
Fixes `RSSOptions` type error when using `strictest` Typescript tsconfig

packages/astro-rss/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type RSSFeedItem = {
3636
/** Link to item */
3737
link: string;
3838
/** Full content of the item. Should be valid HTML */
39-
content?: string;
39+
content?: string | undefined;
4040
/** Title of item */
4141
title: z.infer<typeof rssSchema>['title'];
4242
/** Publication date of item */

0 commit comments

Comments
 (0)