Skip to main content

View as Markdown · AI documentation index

Function: previewText()

previewText(text): string

Defined in: resolve.ts:68

Resolves persisted text to a plain string, for chat list previews and accessibility labels.

Script references only yield a string when their content is one; anything richer comes back empty, because a React node has no faithful string form.

Parameters​

text​

RichText

Persisted text from a transcript entry

Returns​

string