1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-07-31 04:20:26 +02:00

docs: Add PointEntry to API reference

This commit is contained in:
Sunny Hirai
2021-06-06 12:56:56 -07:00
parent 0c30c55355
commit d8dde5be3d
3 changed files with 9 additions and 0 deletions

View File

@@ -40,6 +40,7 @@
- [Location](api/locations/location.md)
- [Path](api/locations/path.md)
- [Point](api/locations/point.md)
- [PointEntry](api/locations/point-entry.md)
- [PointRef](api/locations/point-ref.md)
- [Range](api/locations/range.md)
- [RangeRef](api/locations/range-ref.md)

View File

@@ -9,4 +9,5 @@ type Location = Path | Point | Range
- [Location](./location.md)
- [Path](./path.md)
- [Point](./point.md)
- [PointEntry](./pointe-entry.md)
- [Range](./range.md)

View File

@@ -0,0 +1,7 @@
# PointEntry
`PointEntry` objects are returned when iterating over `Point` objects that belong to a range.
```typescript
type PointEntry = [Point, 'anchor' | 'focus']
```