RSS Feed Item

RSS/Atom feed and item with title, link, enclosure, and categories.

Report an issue
social

Install

$ npx shadcn@latest add @open-types/rss-feed-item

Source

export interface RSSEnclosure {
  url: string;
  type: string;
  length?: number;
}

export interface RSSFeedItem {
  title?: string;
  link?: string;
  description?: string;
  pubDate?: string;
  guid?: string;
  author?: string;
  categories?: string[];
  enclosure?: RSSEnclosure;
}

export interface RSSFeed {
  title: string;
  link: string;
  description: string;
  language?: string;
  items: RSSFeedItem[];
}
export interface RSSEnclosure {
  url: string;
  type: string;
  length?: number;
}

export interface RSSFeedItem {
  title?: string;
  link?: string;
  description?: string;
  pubDate?: string;
  guid?: string;
  author?: string;
  categories?: string[];
  enclosure?: RSSEnclosure;
}

export interface RSSFeed {
  title: string;
  link: string;
  description: string;
  language?: string;
  items: RSSFeedItem[];
}