From 37748ebb297d8bba2a6b2cf71722b2ad1edf66df Mon Sep 17 00:00:00 2001 From: Karam Daddy Date: Tue, 24 Oct 2017 09:19:45 +1300 Subject: [PATCH] Added type for firstDayOfWeek prop (#20667) --- types/react-dates/index.d.ts | 2 ++ types/react-dates/react-dates-tests.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/types/react-dates/index.d.ts b/types/react-dates/index.d.ts index c3559f5278..dc852dde3b 100644 --- a/types/react-dates/index.d.ts +++ b/types/react-dates/index.d.ts @@ -57,6 +57,7 @@ declare namespace ReactDates { withPortal?: boolean, withFullScreenPortal?: boolean, initialVisibleMonth?: () => momentPropTypes.momentObj, + firstDayOfWeek? : 0 | 1 | 2 | 3 | 4 | 5 | 6, numberOfMonths?: number, keepOpenOnDateSelect?: boolean, reopenPickerOnClearDates?: boolean, @@ -144,6 +145,7 @@ declare namespace ReactDates { withPortal?: boolean, withFullScreenPortal?: boolean, initialVisibleMonth?: () => momentPropTypes.momentObj, + firstDayOfWeek? : 0 | 1 | 2 | 3 | 4 | 5 | 6, numberOfMonths?: number, keepOpenOnDateSelect?: boolean, reopenPickerOnClearDates?: boolean, diff --git a/types/react-dates/react-dates-tests.tsx b/types/react-dates/react-dates-tests.tsx index e8dd3752b3..2c86d07dbe 100644 --- a/types/react-dates/react-dates-tests.tsx +++ b/types/react-dates/react-dates-tests.tsx @@ -57,6 +57,7 @@ class SingleDatePickerFullTest extends React.Component { onFocusChange={arg => {}} onNextMonthClick={e => {}} onPrevMonthClick={e => {}} + firstDayOfWeek={0} numberOfMonths={2} orientation="horizontal" monthFormat="MM" @@ -109,6 +110,7 @@ class DateRangePickerFullTest extends React.Component { onFocusChange={arg => {}} onNextMonthClick={e => {}} onPrevMonthClick={e => {}} + firstDayOfWeek={0} numberOfMonths={2} orientation="horizontal" monthFormat="MM"