From e17ed0727ef1acb512c77723a1b641326de8ca84 Mon Sep 17 00:00:00 2001 From: Akash Rajpurohit Date: Mon, 22 May 2023 18:50:10 +0530 Subject: [PATCH] feat: :art: export rss feeditem type (#7153) --- .changeset/lemon-flies-smoke.md | 5 +++++ packages/astro-rss/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/lemon-flies-smoke.md diff --git a/.changeset/lemon-flies-smoke.md b/.changeset/lemon-flies-smoke.md new file mode 100644 index 0000000000..9755e27af0 --- /dev/null +++ b/.changeset/lemon-flies-smoke.md @@ -0,0 +1,5 @@ +--- +'@astrojs/rss': patch +--- + +exposes RSSFeedItem type diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index 2a35bd573c..47c7c1db42 100644 --- a/packages/astro-rss/src/index.ts +++ b/packages/astro-rss/src/index.ts @@ -32,7 +32,7 @@ export type RSSOptions = { trailingSlash?: z.infer['trailingSlash']; }; -type RSSFeedItem = { +export type RSSFeedItem = { /** Link to item */ link: string; /** Full content of the item. Should be valid HTML */