Add URL to RSSOptions.site type (#7964)

This commit is contained in:
Timon Jurschitsch 2023-08-07 10:49:55 +02:00 committed by GitHub
parent 9ad0d326f9
commit 51028f85c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/rss': patch
---
Add URL to RSSOptions.site type

View file

@ -16,7 +16,7 @@ export type RSSOptions = {
* We recommend using the [endpoint context object](https://docs.astro.build/en/reference/api-reference/#contextsite),
* which includes the `site` configured in your project's `astro.config.*`
*/
site: z.infer<typeof rssOptionsValidator>['site'];
site: z.infer<typeof rssOptionsValidator>['site'] | URL;
/** List of RSS feed items to render. */
items: RSSFeedItem[] | GlobResult;
/** Specify arbitrary metadata on opening <xml> tag */