mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-29 22:51:49 +01:00
Add comments for swapNode
This commit is contained in:
parent
48d4611a05
commit
bd93504314
@ -73,10 +73,21 @@ export interface LayoutTreeMoveNodeAction<T> extends LayoutTreeAction, MoveOpera
|
||||
type: LayoutTreeActionType.Move;
|
||||
}
|
||||
|
||||
/**
|
||||
* Action for swapping two nodes within the layout tree.
|
||||
*
|
||||
* @template T The type of data associated with the nodes of the tree.
|
||||
*/
|
||||
export interface LayoutTreeSwapNodeAction<T> extends LayoutTreeAction {
|
||||
type: LayoutTreeActionType.Swap;
|
||||
|
||||
/**
|
||||
* The node that node2 will replace.
|
||||
*/
|
||||
node1: LayoutNode<T>;
|
||||
/**
|
||||
* The node that node1 will replace.
|
||||
*/
|
||||
node2: LayoutNode<T>;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user