|
Download slate/docs/api/nodes/node-entry.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/slate/docs/api/nodes/node-entry.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/slate/docs/api/nodes/node-entry.md
-
curl -L -o node-entry.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/slate/docs/api/nodes/node-entry.md
401 Bytes
| # NodeEntry API | |
| `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`. | |
| ```typescript | |
| type NodeEntry<T extends Node = Node> = [T, Path] | |
| ``` | |