Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Node

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.

interface Node extends UnistNode {
data?: Data | undefined;
}

§Extends

§Properties

§
data?: Data | undefined
[src]

Info from the ecosystem.