Interface INode

INode

interface INode {
    children: INode[];
    position: { end: { offset: number }; start: { offset: number } };
    type: string;
}

Properties

children: INode[]

An array of child nodes.

position: { end: { offset: number }; start: { offset: number } }

The position of the node in the text.

type: string

The type of the node.