From b1b9b1390f95c6ae91389eba55f7563b911bccc7 Mon Sep 17 00:00:00 2001 From: Aivars Liepa Date: Thu, 30 Mar 2023 11:25:36 +0200 Subject: [PATCH] [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> --- .changeset/happy-snails-ring.md | 5 +++++ packages/astro-rss/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/happy-snails-ring.md diff --git a/.changeset/happy-snails-ring.md b/.changeset/happy-snails-ring.md new file mode 100644 index 000000000000..adab2967b762 --- /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 7764b5d132c5..9c5908b93874 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['title']; /** Publication date of item */