NodeEntry API
1 min
NodeEntry objects are returned when iterating over the nodes in a Slate document tree. They consist of an array with two elements: the Node and its Path relative to the root node in the document.
They are generics meaning that sometimes they will return a subset of Node types like an Element or Text.
type NodeEntry<T extends Node = Node> = [T, Path]Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.