mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
1719748a29
* chore: eslint add consistent-type-imports * fix avatar * Update Item.tsx
18 lines
620 B
TypeScript
Executable File
18 lines
620 B
TypeScript
Executable File
import type { Moment } from 'moment';
|
|
import momentGenerateConfig from 'rc-picker/lib/generate/moment';
|
|
import type {
|
|
PickerProps,
|
|
PickerDateProps,
|
|
RangePickerProps as BaseRangePickerProps,
|
|
} from './generatePicker';
|
|
import generatePicker from './generatePicker';
|
|
|
|
export type DatePickerProps = PickerProps<Moment>;
|
|
export type MonthPickerProps = Omit<PickerDateProps<Moment>, 'picker'>;
|
|
export type WeekPickerProps = Omit<PickerDateProps<Moment>, 'picker'>;
|
|
export type RangePickerProps = BaseRangePickerProps<Moment>;
|
|
|
|
const DatePicker = generatePicker<Moment>(momentGenerateConfig);
|
|
|
|
export default DatePicker;
|