Skip to main content

Interface: RecommendationItem

Defined in: types.ts:1004

One recommended article.

Field names are camelCase here and snake_case on the wire; the recommendations module is the only place that converts.

Properties

PropertyTypeDescriptionDefined in
imageUrlstring | null-types.ts:1010
pagePathstringRoot-relative path of the article, e.g. "/news/food/story-slug".types.ts:1006
publishedAtstring | nullISO 8601 publish timestamp, or null for undated articles.types.ts:1012
scorenumberRanking score. Comparable within a strategy but not across them, so never sort a mixed list by it.types.ts:1017
sectionstringContent section, or "" when the catalog has none for this article.types.ts:1009
strategystringWhich rung of the serving ladder produced this item, e.g. "taste".types.ts:1019
titlestring-types.ts:1007