summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Akash Rajpurohit <akashrajpurohit.009@gmail.com> 2023-05-22 18:50:10 +0530
committerGravatar GitHub <noreply@github.com> 2023-05-22 21:20:10 +0800
commite17ed0727ef1acb512c77723a1b641326de8ca84 (patch)
treeb2b7e16eb6fbd3bab52b17940333216fd35d12f4
parentf962348f76cde9a854359777b2d34c8e23206f67 (diff)
downloadastro-e17ed0727ef1acb512c77723a1b641326de8ca84.tar.gz
astro-e17ed0727ef1acb512c77723a1b641326de8ca84.tar.zst
astro-e17ed0727ef1acb512c77723a1b641326de8ca84.zip
feat: :art: export rss feeditem type (#7153)
-rw-r--r--.changeset/lemon-flies-smoke.md5
-rw-r--r--packages/astro-rss/src/index.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/lemon-flies-smoke.md b/.changeset/lemon-flies-smoke.md
new file mode 100644
index 000000000..9755e27af
--- /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 2a35bd573..47c7c1db4 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<typeof rssOptionsValidator>['trailingSlash'];
};
-type RSSFeedItem = {
+export type RSSFeedItem = {
/** Link to item */
link: string;
/** Full content of the item. Should be valid HTML */