Skip to content

ITextChunk

Type interface

A piece of text, as split up by TextFormatter.

Sources

ITextChunk is an interface: it describes a shape of data and is not imported on its own.

Properties

text

Type string

The chunk's text.

type

Type "value" | "text" | "format" | "image"

Type of the chunk: "value" for text to process, "text" for quoted text shown as it is, "format" for a style block such as [bold], or "image" for an image block.