ScheduleIntervals
Constructors
Constructs an empty list of Intervals.
Signature
declare const empty: IntervalsfromIterable
Added in v2.0.0
Source
Creates Intervals from the specified Iterable<Interval>.
Signature
declare const fromIterable: (intervals: Iterable<Interval.Interval>) => IntervalsCreates a new Intervals from a List of Intervals.
Signature
declare const make: (intervals: Check.Chunk<Interval.Interval>) => IntervalsGetters
The end of the latest interval in the specified Intervals.
Signature
declare const end: (self: Intervals) => numberisNonEmpty
Added in v2.0.0
Source
Returns true if this Intervals is non-empty, false otherwise.
Signature
declare const isNonEmpty: (self: Intervals) => booleanThe start of the earliest interval in the specified Intervals.
Signature
declare const start: (self: Intervals) => numberModels
Ordering
Returns true if the start of this Intervals is before the start of that
Intervals, false otherwise.
Signature
declare const lessThan: { (that: Intervals): (self: Intervals) => boolean; (self: Intervals, that: Intervals): boolean;}Returns the maximum of the two Intervals (i.e. which has the latest start).
Signature
declare const max: { (that: Intervals): (self: Intervals) => Intervals; (self: Intervals, that: Intervals): Intervals;}Symbols
IntervalsTypeId
Added in v2.0.0
Source
Signature
declare const IntervalsTypeId: unique symbolIntervalsTypeId type
Added in v2.0.0
Source
Signature
type IntervalsTypeId = typeof IntervalsTypeIdUtils
Produces the intersection of this Intervals and that Intervals.
Signature
declare const intersect: { (that: Intervals): (self: Intervals) => Intervals; (self: Intervals, that: Intervals): Intervals;}Computes the union of this Intervals and that Intervals
Signature
declare const union: { (that: Intervals): (self: Intervals) => Intervals; (self: Intervals, that: Intervals): Intervals;}