isFriday.d.ts 658 B

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