Creates an instance of SandboxManager.
Do not use directly, use sandbox instead.
Subtree root target object.
Disposes of the sandbox.
Executes fn with sandbox copies of the elements of nodes. The changes made to the sandbox
in fn can be accepted, i.e. applied to the original subtree, or rejected.
Object type.
Return type.
Tuple of objects for which to obtain sandbox copies.
Function that is called with sandbox copies of the elements of nodes. Any changes
made to the sandbox are applied to the original subtree when fn returns true or
{ commit: true, ... }. When fn returns false or { commit: false, ... } the changes made
to the sandbox are rejected.
Value of type R when fn returns an object of type { commit: boolean; return: R }
or void when fn returns a boolean.
Manager class returned by
sandboxthat allows you to make changes to a sandbox copy of the original subtree and apply them to the original subtree or reject them.