mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 02:19:52 +02:00
18 lines
531 B
Markdown
18 lines
531 B
Markdown
# Location Types APIs
|
|
|
|
The `Location` interface is a union of the ways to refer to a specific location in a Slate document: paths, points or ranges. Methods will often accept a `Location` instead of requiring only a `Path`, `Point` or `Range`.
|
|
|
|
```typescript
|
|
type Location = Path | Point | Range
|
|
```
|
|
|
|
- [Location](./location.md)
|
|
- [Path](./path.md)
|
|
- [PathRef](./path-ref.md)
|
|
- [Point](./point.md)
|
|
- [PointEntry](./point-entry.md)
|
|
- [PointRef](./point-ref.md)
|
|
- [Range](./range.md)
|
|
- [RangeRef](./range-ref.md)
|
|
- [Span](./span.md)
|