UNPKG

react-custom-calendarss

Version:

A calendar that can be customized to your liking 🧨

24 lines (23 loc) • 843 B
interface CalendarMatrix { matrix: number[][]; year: number; month: number; prevMonthDates: { [key: number]: string; }; nextMonthDates: { [key: number]: string; }; } export declare const createCalendarMatrix: (year: number, month: number, type: string, includeAdjacentMonths?: boolean) => CalendarMatrix; export declare const getWeekFromMatrix: (matrix: number[][], year: number, month: number, targetDate: number, prevMonthDates: { [key: number]: string; }, nextMonthDates: { [key: number]: string; }, type: string) => string[]; export declare const formatMatrixDates: (matrix: number[][], year: number, month: number, type: string, includeAdjacentMonths?: boolean, prevMonthDates?: { [key: number]: string; }, nextMonthDates?: { [key: number]: string; }) => string[][]; export {};