Interface ChildrenHolder

An interface for nodes that can hold children.

interface ChildrenHolder {
    children: BaseNode[];
    addChild(child): void;
}

Implemented by

Properties

Methods

Properties

children: BaseNode[]

The children of the node. A node can have any number of children of all types.

Methods

  • Adds a child to the node. If the node is a TextNode, attempts to flatten the node with a previous TextNode.

    Parameters

    Returns void

Generated using TypeDoc