excludeCurrentPeriodFromRange()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
The numeric core of exclude-current-period: a current-period-ending range shifts back by one period; anything else is returned unchanged (exclusion does not apply). This is what the filter bar persists — no flag, just the shifted offsets.
excludeCurrentPeriodFromRange: (range: {
from: number;
to: number;
}, excludeCurrentPeriod: boolean) => {
from: number;
to: number;
}
Parameters
Parameter | Type | Description |
|---|---|---|
range | { from: number; to: number; } | |
excludeCurrentPeriod | boolean |
Returns
{ from: number; to: number; }