UNPKG

525 BTypeScriptView Raw
1import type { DateRange, DateLib } from "../types/index.js";
2/**
3 * Determines whether a given date is inside a specified date range.
4 *
5 * @since 9.0.0
6 * @group Utilities
7 */
8export declare function rangeIncludesDate(range: DateRange, date: Date,
9/** If `true`, the ends of the range are excluded. */
10excludeEnds?: boolean,
11/** @ignore */
12dateLib?: DateLib): boolean;
13/**
14 * @private
15 * @deprecated Use {@link rangeIncludesDate} instead.
16 */
17export declare const isDateInRange: (range: DateRange, date: Date) => boolean;