@yorkie-js/sdk
    Preparing search index...

    Interface TreeNode

    YSONTreeNode represents a node in a Tree CRDT.

    For text nodes: { type: 'text', value: 'content' } For element nodes: { type: 'p', children: [...] }

    interface TreeNode {
        attrs?: Record<string, string>;
        children?: yson.TreeNode[];
        type: string;
        value?: string;
    }
    Index

    Properties

    attrs?: Record<string, string>

    Attributes (for element nodes)

    children?: yson.TreeNode[]

    Child nodes (for element nodes)

    type: string

    Node type (e.g., 'text', 'p', 'div')

    value?: string

    Text content (for text nodes)