Returns a proxy object for this node. Allows to access object properties by key.
Optionalpath: ApiPathReturns the API object of the extension if the node is an extension node.
When the ext parameter is provided, it checks if the node is an instance
of the given extension and returns the object's TypeScript type. Otherwise,
it returns the API object of the extension, but without any type checking.
API of the extension
Returns the API object of the extension if the node is an extension node.
When the ext parameter is provided, it checks if the node is an instance
of the given extension and returns the object's TypeScript type. Otherwise,
it returns the API object of the extension, but without any type checking.
API of the extension
Optionalpath: ApiPathOptionalpath: ApiPathDeletes a list of keys from the object.
List of keys to delete.
Reference to itself.
Diffs only keys present in dst object.
Find a child node at the given path starting from this node.
Optionalpath: ApiPathPath to the child node to find.
JSON CRDT node at the given path.
Checks if a key exists in the object.
Key to check.
True if the key exists, false otherwise.
Merges only keys present in dst object.
Optionalpath: ApiPathAttaches a listener which executes on every change that is applied to this node's children. Hence, this listener will trigger only for container nodes - nodes that can have child nodes, such as "obj", "arr", "vec", and "val" nodes. It will not execute on changes made directly to this node.
If you want to listen to changes on this node as well as its children, use
onSubtreeChange() method. If you want to listen to changes on this node
only, use onSelfChange() method.
Callback called on every change that is applied to children of this node.
OptionalonReset: booleanOptional parameter, if set to true, the listener will also
be called when the model is reset using the .reset() method.
Returns an unsubscribe function to stop listening to the events.
Attaches a listener which executes on every change that is executed directly on this node. For example, if this is a "str" string node and you insert or delete text, the listener will be executed. Or if this is an "obj" object node and keys of this object are changed, this listener will be executed.
It does not trigger when child nodes are edit, to include those changes,
use onSubtreeChange() or onChildChange() methods.
Callback called on every change that is executed directly on this node.
OptionalonReset: booleanOptional parameter, if set to true, the listener will also
be called when the model is reset using the .reset() method.
Returns an unsubscribe function to stop listening to the events.
Attaches a listener which executes on every change that is applied to this
node or any of its child nodes (recursively). This is equivalent to
combining both onSelfChange() and onChildChange() methods.
Callback called on every change that is applied to this node or any of its child nodes.
OptionalonReset: booleanOptional parameter, if set to true, the listener will also
be called when the model is reset using the .reset() method.
Returns an unsubscribe function to stop listening to the events.
Optionalpath: ApiPathSets a list of keys to the given values.
List of key-value pairs to set.
Reference to itself.
Optionalpath: ApiPathOptionalpath: ApiPathOptionalpath: ApiPath
Local changes API for the
objJSON CRDT node ObjNode.