Function draft

  • Creates a draft copy of a tree node and all its children.

    Type Parameters

    • T extends object

    Parameters

    • original: T

      Original node.

    Returns Draft<T>

    The draft object.

    T Data type.