Skip to main content

SharedTreeBranchManager Class

Manages determining the differences between two branches of a SharedTree represented as an actual tree node or a plain javascript object and applies said differences to the original SharedTree branch.

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 declare class SharedTreeBranchManager

Constructors

Constructor Alerts Description
(constructor)(params) Alpha Constructs a new instance of the SharedTreeBranchManager class

Constructor Details

(constructor)

Constructs a new instance of the SharedTreeBranchManager class

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

constructor(params?: {
objectSchema?: z.Schema;
nodeIdAttributeName?: string;
});

Parameters

Parameter Modifiers Type Description
params optional { objectSchema?: z.Schema; nodeIdAttributeName?: string; }