Skip to content

Commit 06b0b00

Browse files
authored
Merge pull request arqex#138 from skyflyer/master
Set argument type for onBlur on onFocus events
2 parents f358430 + db1644d commit 06b0b00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react-datetime.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ declare module ReactDatetime {
5454
/*
5555
Callback trigger for when the user opens the datepicker.
5656
*/
57-
onFocus?: (e) => void;
57+
onFocus?: (e : FocusEvent) => void;
5858
/*
5959
Callback trigger for when the user clicks outside of the input, simulating a regular onBlur.
6060
The callback receives the selected moment object as only parameter, if the date in the
6161
input is valid. If it isn't, the value of the input (a string) is returned.
6262
*/
63-
onBlurs?: (e) => void;
63+
onBlurs?: (e : FocusEvent) => void;
6464
/*
6565
The default view to display when the picker is shown. ('years', 'months', 'days', 'time')
6666
*/

0 commit comments

Comments
 (0)