Source Namespace Reference
The Source namespace provides elements for enhanced feed metadata, including social media accounts, subscription lists, blogrolls, and source content in various formats like Markdown and OPML outlines.
| Namespace URI | http://source.scripting.com/ |
|---|---|
| Specification | source.scripting.com |
| Prefix | <source:*> |
| Available in | RSS |
| Property | sourceNs (due to conflict with RSS's source element) |
Types
INFO
For details on type parameters (TStrict) and Requirable<T> markers, see TypeScript Reference.
ts
export namespace SourceNs {
export type Account<TStrict extends boolean = false> = Strict<
{
service: Requirable<string> // Required in spec.
value?: string
},
TStrict
>
export type Likes<TStrict extends boolean = false> = Strict<
{
server: Requirable<string> // Required in spec.
},
TStrict
>
export type Archive<TStrict extends boolean = false> = Strict<
{
url: Requirable<string> // Required in spec.
startDay: Requirable<string> // Required in spec.
endDay?: string
filename?: string
},
TStrict
>
export type SubscriptionList<TStrict extends boolean = false> = Strict<
{
url: Requirable<string> // Required in spec.
value?: string
},
TStrict
>
export type Feed<TStrict extends boolean = false> = {
accounts?: Array<Account<TStrict>>
likes?: Likes<TStrict>
archive?: Archive<TStrict>
subscriptionLists?: Array<SubscriptionList<TStrict>>
cloud?: string
blogroll?: string
self?: string
}
export type Item = {
markdown?: string
outlines?: Array<string>
localTime?: string
linkFull?: string
}
}Related
- Parsing Namespaces - How namespace parsing works