-
-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba0a99a
commit c76a556
Showing
2 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
export type BlogPostTypes = 'docs' | 'blog' | 'about' | 'docsTree'; | ||
export type Enclosure = { | ||
'@url': string; | ||
'@length': number; | ||
'@type': string; | ||
enclosure: Enclosure; | ||
}; | ||
|
||
export type RSSItemType = { | ||
title: string; | ||
description: string; | ||
link: string; | ||
category: BlogPostTypes; | ||
guid: any; | ||
pubDate: string; | ||
enclosure: Enclosure; | ||
}; | ||
export type RSS = { | ||
'@version': string; | ||
'@xmlns:atom': string; | ||
channel: { | ||
title: string; | ||
link: string; | ||
'atom:link': { | ||
'@rel': string; | ||
'@href': string; | ||
'@type': string; | ||
}; | ||
description: string; | ||
language: string; | ||
copyright: string; | ||
webMaster: string; | ||
pubDate: string; // UTC string format | ||
generator: string; | ||
item: RSSItemType[]; | ||
}; | ||
}; |