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

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 extends DateLike> = {
    count?: number
    updated?: TDate
  }

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