YSONTreeNode represents a node in a Tree CRDT.
YSONTreeNode
For text nodes: { type: 'text', value: 'content' } For element nodes: { type: 'p', children: [...] }
{ type: 'text', value: 'content' }
{ type: 'p', children: [...] }
Optional
Attributes (for element nodes)
Child nodes (for element nodes)
Node type (e.g., 'text', 'p', 'div')
Text content (for text nodes)
YSONTreeNoderepresents a node in a Tree CRDT.For text nodes:
{ type: 'text', value: 'content' }For element nodes:{ type: 'p', children: [...] }