From 3a0af70d4b60efa7d4edec670255813347a491cf Mon Sep 17 00:00:00 2001 From: Sinziana Nicolae Date: Fri, 11 May 2018 11:19:13 +0300 Subject: [PATCH] Add types for phrases DateRangePickerPhrases --- types/react-dates/index.d.ts | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/types/react-dates/index.d.ts b/types/react-dates/index.d.ts index 92fa68e8d7..1ecebfb22c 100644 --- a/types/react-dates/index.d.ts +++ b/types/react-dates/index.d.ts @@ -266,9 +266,34 @@ declare namespace ReactDates { // internationalization props monthFormat?: string, phrases?: { - focusStartDate: string, - clearDates: string, - keyboardNavigationInstructions: string, + calendarLabel?: string, + closeDatePicker?: string, + clearDates?: string, + focusStartDate?: string, + jumpToPrevMonth?: string, + jumpToNextMonth?: string, + keyboardShortcuts?: string, + showKeyboardShortcutsPanel?: string, + hideKeyboardShortcutsPanel?: string, + openThisPanel?: string, + enterKey?: string, + leftArrowRightArrow?: string, + upArrowDownArrow?: string, + pageUpPageDown?: string, + homeEnd?: string, + escape?: string, + questionMark?: string, + selectFocusedDate?: string, + moveFocusByOneDay?: string, + moveFocusByOneWeek?: string, + moveFocusByOneMonth?: string, + moveFocustoStartAndEndOfWeek?: string, + returnFocusToInput?: string, + keyboardNavigationInstructions?: string, + chooseAvailableStartDate?: (date: string) => string, + chooseAvailableEndDate?: (date: string) => string, + dateIsUnavailable?: (date: string) => string, + dateIsSelected?: (date: string) => string, } }