react-day-picker
Version:
Customizable Date Picker for React
17 lines (16 loc) • 517 B
TypeScript
import type { DateRange, DateLib } from "../types/index.js";
/**
* Add a day to an existing range.
*
* The returned range takes in account the `undefined` values and if the added
* day is already present in the range.
*
* @group Utilities
*/
export declare function addToRange(
/** The date to add to the range. */
date: Date,
/** The range where to add `date`. */
initialRange: DateRange | undefined, min?: number, max?: number, required?: boolean,
/** @ignore */
dateLib?: DateLib): DateRange | undefined;