mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
fix(rss): correct types for RSSFeedItem
(#11299)
This commit is contained in:
parent
dbbd0a22e2
commit
8ce66f2ef7
2 changed files with 8 additions and 3 deletions
5
.changeset/tricky-mirrors-carry.md
Normal file
5
.changeset/tricky-mirrors-carry.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/rss': patch
|
||||
---
|
||||
|
||||
Fixes an issue where the `pagesGlobToRssItems` returned an incorrect type for `items`
|
|
@ -32,13 +32,13 @@ export type RSSOptions = {
|
|||
|
||||
export type RSSFeedItem = {
|
||||
/** Link to item */
|
||||
link: z.infer<typeof rssSchema>['link'];
|
||||
link?: z.infer<typeof rssSchema>['link'];
|
||||
/** Full content of the item. Should be valid HTML */
|
||||
content?: z.infer<typeof rssSchema>['content'];
|
||||
/** Title of item */
|
||||
title: z.infer<typeof rssSchema>['title'];
|
||||
title?: z.infer<typeof rssSchema>['title'];
|
||||
/** Publication date of item */
|
||||
pubDate: z.infer<typeof rssSchema>['pubDate'];
|
||||
pubDate?: z.infer<typeof rssSchema>['pubDate'];
|
||||
/** Item description */
|
||||
description?: z.infer<typeof rssSchema>['description'];
|
||||
/** Append some other XML-valid data to this item */
|
||||
|
|
Loading…
Add table
Reference in a new issue