IntervalRevertible TypeAlias
Data for undoing edits affecting Intervals.
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/sequence/legacy
.
For more information about our API support guarantees, see here.
Signature
export type IntervalRevertible = {
event: typeof IntervalOpType.CHANGE;
interval: SequenceInterval;
start: LocalReferencePosition;
end: LocalReferencePosition;
} | {
event: typeof IntervalOpType.ADD;
interval: SequenceInterval;
} | {
event: typeof IntervalOpType.DELETE;
interval: SequenceInterval;
start: LocalReferencePosition;
end: LocalReferencePosition;
} | {
event: typeof IntervalOpType.PROPERTY_CHANGED;
interval: SequenceInterval;
propertyDeltas: PropertySet;
} | {
event: typeof IntervalOpType.POSITION_REMOVE;
intervals: {
intervalId: string;
label: string;
startOffset?: number;
endOffset?: number;
}[];
revertibleRefs: {
revertible: IntervalRevertible;
offset: number;
isStart: boolean;
}[];
mergeTreeRevertible: MergeTreeDeltaRevertible;
};