Skip to content

Rule.io SDK


Rule.io SDK / rcml/src / TextNode

Type Alias: TextNode

TextNode = object

Defined in: rcml/src/email/content/json-validator/types.ts:57

A leaf text node carrying an optional set of marks (styling/links). marks should be omitted (not []) when no marks are applied.

Properties

marks?

optional marks?: Mark[]

Defined in: rcml/src/email/content/json-validator/types.ts:62

Marks applied to this text. Omit rather than setting to [].


text

text: string

Defined in: rcml/src/email/content/json-validator/types.ts:60

The raw text content. Must be a non-empty string.


type

type: "text"

Defined in: rcml/src/email/content/json-validator/types.ts:58