type-alias
Source: dateGranularities.ts ↗
DatePeriodRange
A range of periods of a DatePeriodGranularity with at least one edge set.
export type DatePeriodRange = {
from: DatePeriodLiteral;
to?: DatePeriodLiteral;
} | {
from?: DatePeriodLiteral;
to: DatePeriodLiteral;
};
References: DatePeriodLiteral
Remarks
‘from’ is the first and ’to’ the last period of the range, both included. A missing edge leaves the range open on that side.