summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Aivars Liepa <aivarsliepa1992@gmail.com> 2023-03-30 11:25:36 +0200
committerGravatar GitHub <noreply@github.com> 2023-03-30 11:25:36 +0200
commitb1b9b1390f95c6ae91389eba55f7563b911bccc7 (patch)
tree4cc3e481c79078a42db63c132e0a99150b25db8b
parent4b077318fbc21c4350cc21c380d96b54d302759c (diff)
downloadastro-b1b9b1390f95c6ae91389eba55f7563b911bccc7.tar.gz
astro-b1b9b1390f95c6ae91389eba55f7563b911bccc7.tar.zst
astro-b1b9b1390f95c6ae91389eba55f7563b911bccc7.zip
[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>
-rw-r--r--.changeset/happy-snails-ring.md5
-rw-r--r--packages/astro-rss/src/index.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/happy-snails-ring.md b/.changeset/happy-snails-ring.md
new file mode 100644
index 000000000..adab2967b
--- /dev/null
+++ b/.changeset/happy-snails-ring.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/rss': patch
+---
+
+Fixes `RSSOptions` type error when using `strictest` Typescript tsconfig
diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts
index 7764b5d13..9c5908b93 100644
--- a/packages/astro-rss/src/index.ts
+++ b/packages/astro-rss/src/index.ts
@@ -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 */