isValidDatePeriodRange()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Tells whether ‘from’ and ’to’ form a valid range of periods of the granularity.
export declare function isValidDatePeriodRange(granularity: DatePeriodGranularity | DateRangeParameterGranularity, from: unknown, to: unknown): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
granularity | ||
from | unknown | |
to | unknown |
Returns
boolean
Remarks
At least one of ‘from’ and ’to’ must be set, each one that is set must be a valid literal, and ‘from’ must not be after ’to’ when both are set.