Fix type signature of event handler (#13412)

https://github.com/Hacker0x01/react-datepicker/edit/master/src/datepicker.jsx indicates these should be function types.
This commit is contained in:
Sebastian Himberger 2017-01-18 06:47:27 +01:00 committed by Mohamed Hegazy
parent 1bfcf017f4
commit f1ff6bcaee

View File

@ -16,7 +16,7 @@ declare module "react-datepicker" {
disabled?: boolean;
endDate?: {};
excludeDates?: any[];
filterDate?():any;
filterDate?(): any;
fixedHeight?: boolean;
id?: string;
includeDates?: any[];
@ -25,10 +25,9 @@ declare module "react-datepicker" {
maxDate?: {};
minDate?: {};
name?: string;
onBlur?():any;
onChange():any;
onChange(date?:any):any;
onFocus?():any;
onBlur?(handler: (e: any) => void): any;
onChange(handler: (date?: any, e?: any) => void): any;
onFocus?(handler: (e: any) => void): any;
peekNextMonth?: boolean;
placeholderText?: string;
popoverAttachment?: string;
@ -40,7 +39,7 @@ declare module "react-datepicker" {
scrollableYearDropdown?: boolean;
selected?: {};
selectsEnd?: boolean;
selectsStart?: boolean;
selectsStart?: boolean;
showMonthDropdown?: boolean;
showYearDropdown?: boolean;
showWeekNumbers?: boolean;