1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-27 09:04:31 +02:00

doc: add missing APIs in the doc (#5835)

* doc: add missing APIs in the doc

* refactor: apply lint
This commit is contained in:
Deepak Kharah
2025-04-04 10:40:34 +05:30
committed by GitHub
parent 8b2414ab16
commit 5adb8ededf
6 changed files with 51 additions and 3 deletions

View File

@@ -10,9 +10,16 @@ interface PathRef {
}
```
- [Instance methods](path-ref.md#instance-methods)
- [Static methods](path-ref.md#static-methods)
- [Transform methods](path-ref.md#trasnform-methods)
## Instance methods
#### `unref() => Path | null`
Free the resources used by the PathRef. This should be called when you no longer need to track the path. Returns the final path value before being unrefed, or null if the path was already invalid.
## Static methods
### Transform methods