react-day-picker
Version:
Customizable Date Picker for React
20 lines (16 loc) • 464 B
text/typescript
import { CalendarDay } from "./CalendarDay.js";
/**
* Represents a week in a calendar month.
*
* A `CalendarWeek` contains the days within the week and the week number.
*/
export class CalendarWeek {
constructor(weekNumber: number, days: CalendarDay[]) {
this.days = days;
this.weekNumber = weekNumber;
}
/** The number of the week within the year. */
weekNumber: number;
/** The days that belong to this week. */
days: CalendarDay[];
}