UNPKG

654 BTypeScriptView Raw
1import type { ContextOptions, DateArg } from "./types.js";
2/**
3 * The {@link isSunday} function options.
4 */
5export interface IsSundayOptions extends ContextOptions<Date> {}
6/**
7 * @name isSunday
8 * @category Weekday Helpers
9 * @summary Is the given date Sunday?
10 *
11 * @description
12 * Is the given date Sunday?
13 *
14 * @param date - The date to check
15 * @param options - The options object
16 *
17 * @returns The date is Sunday
18 *
19 * @example
20 * // Is 21 September 2014 Sunday?
21 * const result = isSunday(new Date(2014, 8, 21))
22 * //=> true
23 */
24export declare function isSunday(
25 date: DateArg<Date> & {},
26 options?: IsSundayOptions | undefined,
27): boolean;