UNPKG

1.09 kBTypeScriptView Raw
1import type { DateAfter, DateBefore, DateInterval, DateLib, DateRange, DayOfWeek } from "../types/index.js";
2/**
3 * Returns true if `matcher` is of type {@link DateInterval}.
4 *
5 * @group Utilities
6 */
7export declare function isDateInterval(matcher: unknown): matcher is DateInterval;
8/**
9 * Returns true if `value` is a {@link DateRange} type.
10 *
11 * @group Utilities
12 */
13export declare function isDateRange(value: unknown): value is DateRange;
14/**
15 * Returns true if `value` is of type {@link DateAfter}.
16 *
17 * @group Utilities
18 */
19export declare function isDateAfterType(value: unknown): value is DateAfter;
20/**
21 * Returns true if `value` is of type {@link DateBefore}.
22 *
23 * @group Utilities
24 */
25export declare function isDateBeforeType(value: unknown): value is DateBefore;
26/**
27 * Returns true if `value` is a {@link DayOfWeek} type.
28 *
29 * @group Utilities
30 */
31export declare function isDayOfWeekType(value: unknown): value is DayOfWeek;
32/** Returns true if `value` is an array of valid dates. */
33export declare function isDatesArray(value: unknown, dateLib: DateLib): value is Date[];