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: {