RSS > Using glob imports: pagesGlobToRssItems return is not assignable to rss items #11287
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
pkg: rss
Related to the `@astrojs/rss` package (scope)
📚 Subject area/topic
RSS
📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/guides/rss/#using-glob-imports
📋 Description of content that is out-of-date or incorrect
I'm trying to do exactly what he
src/pages/rss.xml.js
example proposes foritems: await pageGlobToRssItems(...)
. But I'm getting a TypeScript error on the items. Its tl;dr is that some properties are option in the returned items schema frompagesGlobToRssItems
, but required in the schema for theitems
parameter property inrss
:link
pubDate
title
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
https://stackblitz.com/edit/github-wcs5ut?file=package.json,src%2Fpages%2Frss.xml.ts
The text was updated successfully, but these errors were encountered: