IIntervalHelpers Interface
Packages > @fluidframework/sequence > IIntervalHelpers
Signature:
export interface IIntervalHelpers<TInterval extends ISerializableInterval>
Methods
Method | Description |
---|---|
compareEnds(a, b) | |
create(label, start, end, client, intervalType) |
Methods
compareEnds
Signature:
compareEnds(a: TInterval, b: TInterval): number;
Parameters
Parameter | Type | Description |
---|---|---|
a | TInterval | |
b | TInterval |
Returns:
number
create
Signature:
create(label: string, start: number, end: number, client: MergeTree.Client, intervalType?: MergeTree.IntervalType): TInterval;
Parameters
Parameter | Type | Description |
---|---|---|
label | string | |
start | number | |
end | number | |
client | MergeTree.Client | |
intervalType | MergeTree.IntervalType |
Returns:
TInterval