UNPKG

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