Skip to content

Atom Threading Namespace Reference

The Atom Threading namespace provides elements for representing threaded discussions and comment relationships in RSS and Atom feeds, enabling proper conversation threading.

Namespace URIhttp://purl.org/syndication/thread/1.0
SpecificationRFC 4685 - Atom Threading Extensions
Prefix<thr:*>
Available inRSS, Atom
Propertythr

Types

INFO

For details on type parameters (TDate, TStrict) and Requirable<T> markers, see TypeScript Reference.

ts
export namespace ThrNs {
  export type InReplyTo<TStrict extends boolean = false> = Strict<
    {
      ref: Requirable<string> // Required in spec
      href?: string
      type?: string
      source?: string
    },
    TStrict
  >

  export type Link<TDate> = {
    count?: number
    updated?: TDate
  }

  export type Item<TStrict extends boolean = false> = {
    total?: number
    inReplyTos?: Array<InReplyTo<TStrict>>
  }
}