react-day-picker
Version:
Customizable Date Picker for React
15 lines (14 loc) • 589 B
TypeScript
import { DateLib } from "../classes/index.js";
/**
* Returns the number of weeks to display in the broadcast calendar for a given
* month.
*
* The broadcast calendar may have either 4 or 5 weeks in a month, depending on
* the start and end dates of the broadcast weeks.
*
* @since 9.4.0
* @param month The month for which to calculate the number of weeks.
* @param dateLib The date library to use for date manipulation.
* @returns The number of weeks in the broadcast calendar (4 or 5).
*/
export declare function getBroadcastWeeksInMonth(month: Date, dateLib: DateLib): 4 | 5;