Node

Defined in: node_modules/@types/unist/index.d.ts:86

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.

Extended by

Properties

data?

optional data: Data

Defined in: node_modules/@types/unist/index.d.ts:95

Info from the ecosystem.


position?

optional position: Position

Defined in: node_modules/@types/unist/index.d.ts:103

Position of a node in a source document.

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


type

type: string

Defined in: node_modules/@types/unist/index.d.ts:90

Node type.