Skip to main content
Version: v2

RevertibleAlpha Interface

A Revertible with features that are not yet stable.

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

To use, import via fluid-framework/alpha.

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

Sealed

This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.

Signature

/** @sealed */
export interface RevertibleAlpha extends Revertible

Extends: Revertible

Properties

PropertyAlertsTypeDescription
cloneAlpha(view: UntypedTreeView) => RevertibleAlphaClones the Revertible to a target view.

Methods

MethodAlertsReturn TypeDescription
revert()AlphavoidReverts the associated change and disposes it.
revert(dispose)AlphavoidReverts the associated change and optionally disposes it.
revert(options)AlphavoidReverts the associated change according to the given options.

Property Details

clone

Clones the Revertible to a target view.

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

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

Signature

clone: (view: UntypedTreeView) => RevertibleAlpha;

Type: (view: UntypedTreeView) => RevertibleAlpha

Method Details

revert

Reverts the associated change and disposes it.

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

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

Signature

revert(): void;

Remarks

Concurrent changes that are sequenced before the revert will not be overwritten by the revert if they affect different parts of the document.

revert

Reverts the associated change and optionally disposes it.

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

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

Signature

revert(dispose: boolean): void;

Remarks

Concurrent changes that are sequenced before the revert will not be overwritten by the revert if they affect different parts of the document.

Parameters

ParameterTypeDescription
disposebooleanIf true, the revertible will be disposed after being reverted. If false, the revertible will remain valid. This can be useful for scenarios where the revert may be dropped due to merge conflicts, and one wants to attempt reverting again.

revert

Reverts the associated change according to the given options.

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

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

Signature

revert(options: RevertOptionsAlpha): void;

Remarks

Concurrent changes that are sequenced before the revert will not be overwritten by the revert if they affect different parts of the document.

Parameters

ParameterTypeDescription
optionsRevertOptionsAlpha