Root

Document fragment or a whole document.

Should be used as the root of a tree and must not be used as a child.

Can also be used as the value for the content field on a 'template' element.

Extends

Properties

children

children: RootContent[]

Children of root.

Overrides

Parent.children

Defined in

node_modules/@types/hast/index.d.ts:253


data?

optional data: RootData

Data associated with the hast root.

Overrides

Parent.data

Defined in

node_modules/@types/hast/index.d.ts:257


position?

optional position: Position

Position of a node in a source document.

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

Inherited from

Parent.position

Defined in

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


type

type: "root"

Node type of hast root.

Overrides

Parent.type

Defined in

node_modules/@types/hast/index.d.ts:249