Abstract unist node.

The syntactic unit in unist syntax trees are called nodes.

This interface is supposed to be extended. If you can use Literal or Parent, you should. But for example in markdown, a thematicBreak (***), is neither literal nor parent, but still a node.

interface Node$1 {
    data?: Data$1;
    position?: Position$1;
    type: string;
}

Hierarchy (view full)

Properties

Properties

data?: Data$1

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.