diff --git a/components/date-picker/index.tsx b/components/date-picker/index.tsx index 66a275d48b..823107455b 100755 --- a/components/date-picker/index.tsx +++ b/components/date-picker/index.tsx @@ -1,6 +1,15 @@ import { Moment } from 'moment'; import momentGenerateConfig from 'rc-picker/lib/generate/moment'; -import generatePicker from './generatePicker'; +import generatePicker, { + PickerProps, + PickerDateProps, + RangePickerProps as BaseRangePickerProps, +} from './generatePicker'; + +export type DatePickerProps = PickerProps; +export type MonthPickerProps = Omit, 'picker'>; +export type WeekPickerProps = Omit, 'picker'>; +export type RangePickerProps = BaseRangePickerProps; const DatePicker = generatePicker(momentGenerateConfig);