Skip to content

Commit

Permalink
Merge pull request #4015 from yf-yang/move-nodes-type
Browse files Browse the repository at this point in the history
Move nodes type
  • Loading branch information
zbeyens authored Jan 22, 2025
2 parents e49082c + 5da4738 commit 4da4cff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/perfect-donkeys-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/slate': patch
---

Fix `editor.tf.moveNodes` type
2 changes: 1 addition & 1 deletion packages/slate/src/interfaces/editor/editor-transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export type EditorTransforms<V extends Value = Value> = {
* Move the nodes from an origin to a destination. A destination must be
* specified in the `options`. If no origin is specified, move the selection.
*/
moveNodes: (options?: MoveNodesOptions<V>) => void;
moveNodes: (options: MoveNodesOptions<V>) => void;
/** Normalize any dirty objects in the editor. */
normalize: (options?: EditorNormalizeOptions) => void;
/** Redo to the next saved state. */
Expand Down

0 comments on commit 4da4cff

Please sign in to comment.