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
Prefix<thr:*>
Available inRSS, Atom

Structure

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 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>
}