mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
1bfcf017f4
commit
f1ff6bcaee
11
react-datepicker/index.d.ts
vendored
11
react-datepicker/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user