rsuite
Version:
A suite of react components
15 lines (14 loc) • 538 B
TypeScript
import type { Locale } from 'date-fns';
/**
* Get the first days of weeks in a month。
* @param firstDayOfMonth The first day of the month
* @param options.weekStart the index of the first day of the week (0 - Sunday)
* @param options.isoWeek Whether to use ISO week
* @returns A list of first days of weeks in a month
*/
export declare function getWeekStartDates(firstDayOfMonth: Date, options: {
weekStart?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
isoWeek?: boolean;
locale?: Locale;
}): Date[];
export default getWeekStartDates;