Add URL to RSSOptions.site type (#7964)
This commit is contained in:
parent
9ad0d326f9
commit
51028f85c6
2 changed files with 6 additions and 1 deletions
5
.changeset/new-otters-sell.md
Normal file
5
.changeset/new-otters-sell.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@astrojs/rss': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add URL to RSSOptions.site type
|
|
@ -16,7 +16,7 @@ export type RSSOptions = {
|
||||||
* We recommend using the [endpoint context object](https://docs.astro.build/en/reference/api-reference/#contextsite),
|
* 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.*`
|
* 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. */
|
/** List of RSS feed items to render. */
|
||||||
items: RSSFeedItem[] | GlobResult;
|
items: RSSFeedItem[] | GlobResult;
|
||||||
/** Specify arbitrary metadata on opening <xml> tag */
|
/** Specify arbitrary metadata on opening <xml> tag */
|
||||||
|
|
Loading…
Reference in a new issue