mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
17 lines
507 B
TypeScript
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;
|