UNPKG

@technobuddha/library

Version:
19 lines (18 loc) 616 B
import type { DayOfWeek } from '../constants'; declare type Options = { /** Use the UTC timezone */ UTC?: boolean; /** The day that is considered the 'first' day of the week */ firstDayOfWeek?: DayOfWeek; }; /** * Determine the last day of the week containing a date * * @param input The date * @param __namedParameters see {@link Options} * @default UTC false * @default firstDayOfWeek Sunday * @returns Midnight of the last day of the week containing the input date */ export declare function getEndOfWeek(input: Date, { UTC, firstDayOfWeek }?: Options): Date; export default getEndOfWeek;