Merge pull request #17955 from haimrait/master

fix: DatePicker onChange types
This commit is contained in:
偏右 2019-07-30 12:35:25 +08:00 committed by GitHub
commit d31d2c19d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ export interface SinglePickerProps {
defaultPickerValue?: moment.Moment;
placeholder?: string;
renderExtraFooter?: (mode: DatePickerMode) => React.ReactNode;
onChange?: (date: moment.Moment, dateString: string) => void;
onChange?: (date: moment.Moment | null, dateString: string) => void;
}
const DatePickerModes = tuple('time', 'date', 'month', 'year', 'decade');