Skip to Content

The ContentBody type of the TypeScript SDK, part of ContentResult.

type ContentBody = {
  charset: string | null
  content: string | null
  section: string
  size: number
  truncated: boolean
}

Fields

FieldTypeDescription
charsetstring | nullOriginal character set encoding
contentstring | nullDecoded body text content (null if truncated due to large size)
sectionstringMIME section identifier
sizenumberFull decoded body size in bytes
truncatedbooleanTrue if body content was truncated because it exceeded inline limits

Used in

ContentResult.

On this page