Skip to content

Atom Threading Namespace Reference

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

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

Types

INFO

TDate represents date fields in the type definitions. When parsing, dates are returned as strings in their original format (see Parsing › Handling Dates for more details). When generating, dates should be provided as JavaScript Date objects.

ts
export namespace ThrNs {
  export type InReplyTo = {
    ref: string
    href?: string
    type?: string
    source?: string
  }

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

  export type Item = {
    total?: number
    inReplyTos?: Array<InReplyTo>
  }
}