UNPKG

562 BTypeScriptView Raw
1import { type DateLib } from "../classes/DateLib.js";
2import type { DateRange } from "../types/index.js";
3/**
4 * Add a day to an existing range.
5 *
6 * The returned range takes in account the `undefined` values and if the added
7 * day is already present in the range.
8 *
9 * @group Utilities
10 */
11export declare function addToRange(
12/** The date to add to the range. */
13date: Date,
14/** The range where to add `date`. */
15initialRange: DateRange | undefined, min?: number, max?: number, required?: boolean,
16/** @ignore */
17dateLib?: DateLib): DateRange | undefined;