Defined in: node_modules/@types/hast/index.d.ts:127
Abstract hast node.
This interface is supposed to be extended.
If you can use Literal or Parent, you should.
But for example in HTML, a Doctype
is neither literal nor parent, but
still a node.
To register custom hast nodes, add them to RootContentMap and other places where relevant (such as ElementContentMap).
For a union of all registered hast nodes, see Nodes.
optional
data:Data
Defined in: node_modules/@types/hast/index.d.ts:131
Info from the ecosystem.
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:
string
Defined in: node_modules/@types/unist/index.d.ts:90
Node type.