From 98f627db4a3527a2dde3b4497d749b76db4d2ce4 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Thu, 5 Mar 2020 14:08:17 -0800 Subject: [PATCH] [@type/react-infinite-calendar] Describe locale.locale in detail (#42703) * update: locale.locale * update: test case * Update locale types in more detail --- types/react-infinite-calendar/index.d.ts | 4 ++++ .../react-infinite-calendar/react-infinite-calendar-tests.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/types/react-infinite-calendar/index.d.ts b/types/react-infinite-calendar/index.d.ts index d7e4e0c328..31014e231a 100644 --- a/types/react-infinite-calendar/index.d.ts +++ b/types/react-infinite-calendar/index.d.ts @@ -47,6 +47,10 @@ export interface ReactInfiniteCalendarProps { todayHelperRowOffset?: number; }; locale?: { + locale?: { + distanceInWords: (token: any, count: any, options: any) => any, + format: () => any; + }, blank?: string; headerFormat?: string; todayLabel?: { diff --git a/types/react-infinite-calendar/react-infinite-calendar-tests.tsx b/types/react-infinite-calendar/react-infinite-calendar-tests.tsx index d10637bf6b..df50378197 100644 --- a/types/react-infinite-calendar/react-infinite-calendar-tests.tsx +++ b/types/react-infinite-calendar/react-infinite-calendar-tests.tsx @@ -32,6 +32,10 @@ const test: React.SFC = () => ( todayHelperRowOffset: 4, }} locale={{ + locale: { + distanceInWords: () => {}, + format: () => {} + }, blank: 'Select a date...', headerFormat: 'ddd, MMM Do', todayLabel: {