Forest.js Core Documentation - v1.2.3
    Preparing search index...

    Type Alias TreeNode

    TreeNode: Node | string | number | null | undefined

    Represents a node that can be part of the DOM tree. This includes actual DOM nodes, primitive types like strings and numbers, or even nullable types like null or undefined.

    const node1: TreeNode = tree("span"); // <- "node1" is a TreeNode
    const node2: TreeNode = "Text content"; // <- "node2" is a TreeNode
    const node3: TreeNode = null; // <- "node3" is a TreeNode