Back to Slate

Span API

docs/api/locations/span.md

0.61.3430 B
Original Source

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

Check Methods

Span.isSpan(value: any) => value is Span

Check if a value implements the Span interface.