Skip to main content

ISerializedInterval Interface

Serialized object representation of an interval. This representation is used for ops that create or change 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 interface ISerializedInterval

Properties

PropertyAlertsModifiersTypeDescription
endBetanumber | "start" | "end"End position of the interval
endSideBetaoptionalSide
intervalTypeBetaIntervalTypeInterval type to create
propertiesBetaoptionalPropertySetAny properties the interval has
sequenceNumberBetanumberSequence number at which start and end should be interpreted
startBetanumber | "start" | "end"Start position of the interval
startSideBetaoptionalSide
stickinessBetaoptionalIntervalStickinessThe stickiness of this interval

Property Details

end

End position of the interval

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

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

Signature

end: number | "start" | "end";

Type: number | "start" | "end"

endSide

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

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

Signature

endSide?: Side;

Type: Side

intervalType

Interval type to create

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

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

Signature

intervalType: IntervalType;

Type: IntervalType

properties

Any properties the interval has

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

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

Signature

properties?: PropertySet;

Type: PropertySet

sequenceNumber

Sequence number at which start and end should be interpreted

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

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

Signature

sequenceNumber: number;

Type: number

Remarks

It's unclear that this is necessary to store here. This should just be the refSeq on the op that modified the interval, which should be available via other means. At the time of writing, it's not plumbed through to the reconnect/rebase code, however, which does need it.

start

Start position of the interval

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

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

Signature

start: number | "start" | "end";

Type: number | "start" | "end"

startSide

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

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

Signature

startSide?: Side;

Type: Side

stickiness

The stickiness of this interval

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

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

Signature

stickiness?: IntervalStickiness;

Type: IntervalStickiness