mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 01:50:06 +02:00
* Adds clarification & examples to demystify Transforms. * Fleshes out documentation of NodeOptions for Transforms * Update docs/concepts/04-transforms.md Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org> * Uses 'API' in the title of all API documents Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
19 lines
431 B
Markdown
19 lines
431 B
Markdown
# 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.
|