Skip to content

Commit

Permalink
makes optional event arguments consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Apr 10, 2020
1 parent 6914c9d commit b4e8a9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/components/date_picker/react-datepicker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,18 @@ export interface ReactDatePickerProps {
*/
onChange?(
date: moment.Moment | null,
event?: React.SyntheticEvent<any> | undefined
event?: React.SyntheticEvent<any>
): void;
onChangeRaw?(event: React.FocusEvent<HTMLInputElement>): void;
onClickOutside?(event: React.MouseEvent<HTMLDivElement>): void;
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onKeyDown?(event: React.KeyboardEvent<HTMLDivElement>): void;
onMonthChange?(date: moment.Moment): void;
onSelect?(
date: moment.Moment,
event: React.SyntheticEvent<any> | undefined
): void;
onSelect?(date: moment.Moment, event?: React.SyntheticEvent<any>): void;
onWeekSelect?(
firstDayOfWeek: moment.Moment,
weekNumber: string | number,
event: React.SyntheticEvent<any> | undefined
event?: React.SyntheticEvent<any>
): void;
onYearChange?(date: moment.Moment): void;
openToDate?: moment.Moment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface EuiDatePopoverContentProps {
value: string;
onChange(
date: Moment | string | null,
event?: React.SyntheticEvent<any> | undefined
event?: React.SyntheticEvent<any>
): void;
roundUp?: boolean;
dateFormat: string;
Expand Down

0 comments on commit b4e8a9b

Please sign in to comment.