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.
children:
RootContent
[]
Children of root.
node_modules/@types/hast/index.d.ts:253
optional
data:RootData
Data associated with the hast root.
node_modules/@types/hast/index.d.ts:257
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.
node_modules/@types/unist/index.d.ts:103
type:
"root"
Node type of hast root.
node_modules/@types/hast/index.d.ts:249