UNPKG

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