Root

Defined in: node_modules/@types/hast/index.d.ts:245

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[]

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

Children of root.

Overrides

Parent.children


data?

optional data: RootData

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

Data associated with the hast root.

Overrides

Parent.data


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.

Inherited from

Parent.position


type

type: "root"

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

Node type of hast root.

Overrides

Parent.type