Type Alias Node

Node: {
    attrs?: AttrsObj;
    children?: Child[];
    tag: HTMLTag;
}

Represents an HTML node.

Type declaration

  • Optionalattrs?: AttrsObj

    The attributes of the node.

  • Optionalchildren?: Child[]

    The children of the node.

  • tag: HTMLTag

    The HTML tag name.