|
Download slate/docs/api/locations/span.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/docs/api/locations/span.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/docs/api/locations/span.md
-
curl -L -o span.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/docs/api/locations/span.md
431 Bytes
| # Span API | |
| A `Span` is a low-level way to refer to a `Range` using `Element` as the end points instead of a `Point` which requires the use of leaf text nodes. | |
| ```typescript | |
| type Span = [Path, Path] | |
| ``` | |
| - [Static methods](span.md#static-methods) | |
| - [Check methods](span.md#check-methods) | |
| ## Static Methods | |
| ### Check Methods | |
| #### `Span.isSpan(value: any) => value is Span` | |
| Check if a `value` implements the `Span` interface. | |