ant-design/components/calendar/index.ts
叶枫 502dac12aa
docs: format code (#48309)
* docs: fix code

* feat: lint

* feat: prettier

* feat: test

* feat: review

* feat: format html

* feat: format html
2024-04-08 14:04:08 +08:00

17 lines
507 B
TypeScript

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<Dayjs>(dayjsGenerateConfig);
export type CalendarType = typeof Calendar & {
generateCalendar: typeof generateCalendar;
};
(Calendar as CalendarType).generateCalendar = generateCalendar;
export type { CalendarProps };
export default Calendar as CalendarType;