Packages > @fluidframework/merge-tree > MergeTreeRevertibleDriver

MergeTreeRevertibleDriver Interface

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/merge-tree/legacy.

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

Signature

export interface MergeTreeRevertibleDriver

Methods

Method Alerts Return Type Description
annotateRange(start, end, props) Alpha void
insertFromSpec(pos, spec) Alpha void
removeRange(start, end) Alpha void

Method Details

annotateRange

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

To use, import via @fluidframework/merge-tree/alpha.

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

Signature

annotateRange(start: number, end: number, props: PropertySet): void;

Parameters

Parameter Type Description
start number
end number
props PropertySet

insertFromSpec

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

To use, import via @fluidframework/merge-tree/alpha.

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

Signature

insertFromSpec(pos: number, spec: IJSONSegment): void;

Parameters

Parameter Type Description
pos number
spec IJSONSegment

removeRange

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

To use, import via @fluidframework/merge-tree/alpha.

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

Signature

removeRange(start: number, end: number): void;

Parameters

Parameter Type Description
start number
end number