Type alias ElementNode<A>

ElementNode<A>: {
    attributes?: A;
    children: TreeNode[];
    type: TreeNodeType;
}

ElementNode represents an element node. It has an attributes and children.

Type Parameters

Type declaration

  • Optional attributes?: A
  • children: TreeNode[]
  • type: TreeNodeType