UNPKG

@studyportals/sp-hs-misc

Version:

Miscellaneous code used in HouseStark's projects

17 lines (16 loc) 485 B
declare class TimeInterval { private _startDate; private _endDate; get startDate(): Date; get endDate(): Date; constructor(startDate: Date, endDate: Date); static createFromTimeInterval(timeInterval: TimeInterval): TimeInterval; /** * @deprecated Use TimeInterval.contains instead. */ isDateInInterval(date: Date): boolean; contains(date: Date): boolean; toUTCDays(): Date[]; protected toJSON(): object; } export { TimeInterval };