Abstract hast node that contains other hast nodes (children).

This interface is supposed to be extended if you make custom hast nodes.

For a union of all registered hast parents, see Parents.

interface Parent {
    children: RootContent[];
    data?: Data;
    position?: Position$1;
    type: string;
}

Hierarchy (view full)

Properties

children: RootContent[]

List of children.

data?: Data

Info from the ecosystem.

position?: Position$1

Position of a node in a source document.

Nodes that are generated (not in the original source document) must not have a position.

type: string

Node type.