import type { Dayjs } from 'dayjs'; import dayjsGenerateConfig from 'rc-picker/lib/generate/dayjs'; import type { CalendarProps } from './generateCalendar'; import generateCalendar from './generateCalendar'; const Calendar = generateCalendar(dayjsGenerateConfig); export type CalendarType = typeof Calendar & { generateCalendar: typeof generateCalendar; }; (Calendar as CalendarType).generateCalendar = generateCalendar; export type { CalendarProps }; export default Calendar as CalendarType;