1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 03:11:44 +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

@@ -115,6 +115,10 @@ Check is a value implements the `Path` interface.
Check if a path is a sibling of another.
#### `Path.operationCanTransformPath(operation: Operation) => operation is InsertNodeOperation | RemoveNodeOperation | MergeNodeOperation | SplitNodeOperation | MoveNodeOperation`
Returns whether this operation can affect paths or not.
### Transform method
#### `Path.transform(path: Path, operation: Operation, options?) => Path | null`