Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContentItem<T>

Class representing Content returned from the Content Delivery Service. The body property will contain the properties specified by the JSON schema content type. Any linked content items will be included inline in the body.

Type parameters

Hierarchy

  • ContentItem

Index

Properties

Methods

Properties

body

body: T

Body of the content item. This object will contain the properties specified by the JSON schema content type. Any linked content items will be included inline in the body.

Methods

toJSON

  • toJSON(): any
  • Returns a plain JSON version of the content body, removing helper properties and functions. This should be used if your application needs to serialize the content body, e.g. in an API response.

    Returns any

Generated using TypeDoc