Skip to main content

MoveSingleDiff Interface

An object that describes the movement of a single node from one array node to another array node.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/ai-collab/alpha.

For more information about our API support guarantees, see here.

Signature

export interface MoveSingleDiff extends DiffBase

Extends: DiffBase

Properties

PropertyAlertsModifiersTypeDescription
destinationNodePathAlphareadonlyNodePathThe path from the root of the tree to the destination array node.
moveTypeAlphareadonly"move-single"The type of movement being performed.
nodeContentAlphareadonlyunknownThe content of the node being moved from the source array node to the destination array node.
sourceNodePathAlphareadonlyNodePathThe path from the root of the tree to the source node. The last value in the path will be the node being moved
typeAlphareadonly"move"

Property Details

destinationNodePath

The path from the root of the tree to the destination array node.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly destinationNodePath: NodePath;

Type: NodePath

moveType

The type of movement being performed.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly moveType: "move-single";

Type: "move-single"

nodeContent

The content of the node being moved from the source array node to the destination array node.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly nodeContent: unknown;

Type: unknown

sourceNodePath

The path from the root of the tree to the source node. The last value in the path will be the node being moved

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly sourceNodePath: NodePath;

Type: NodePath

type

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly type: "move";

Type: "move"