Function setParent

  • Sets the parent properties of the given node and all of its child nodes.

    Type Parameters

    Parameters

    • node: T | NoParent<T>
    • parent: T["parent"]

      The parent of node.

    Returns asserts node is T