IIntervalHelpers Interface
Signature
export interface IIntervalHelpers<TInterval extends ISerializableInterval>
Type Parameters
Parameter | Constraint | Description |
---|---|---|
TInterval | ISerializableInterval |
Methods
Method | Return Type | Description |
---|---|---|
compareEnds(a, b) | number | |
create(label, start, end, client, intervalType, op) | TInterval |
Method Details
compareEnds
Signature
compareEnds(a: TInterval, b: TInterval): number;
Parameters
Parameter | Type | Description |
---|---|---|
a | TInterval | |
b | TInterval |
Returns
Return type: number
create
Signature
create(label: string, start: number, end: number, client: Client, intervalType?: IntervalType, op?: ISequencedDocumentMessage): TInterval;
Parameters
Parameter | Modifiers | Type | Description |
---|---|---|---|
label | string | ||
start | number | ||
end | number | ||
client | Client | ||
intervalType | optional | IntervalType | |
op | optional | ISequencedDocumentMessage |
Returns
Return type: TInterval